News for hackers. Stuff that matters.

zappchance

Re: on Wednesday November 20, 2024 @06:54PM (#42199455)
DDG gives me:

forbes.com healthline.com medicalnewstoday.com fortune.com

But I usually use site:reddit.com in my searches anyway so it doesn't matter to my personal habits.

I understand this argument for something like an small indie studio or some YouTube channel, but I'm less likely to accept that as an excuse for a company that can easily afford to hire a11y experts.
Re:Meta Movie Gen on Friday October 04, 2024 @09:47AM (#41741340)
Consistentency between scenes is one possible reason.
Re:The anatomy of a 2AM mental breakdown on Wednesday August 21, 2024 @03:42PM (#41313502)
> And honestly, the idea that "if you can't find a another job quickly, you're clearly not very good at your job" is flat out insulting.

To be clear, I was only referring to leadership or management roles (given the context of a millionaire in this industry). At that point in your career I would expect one to have many career connections and/or enough sheer charisma and experience that makes landing a job doable if not a breeze.

It's not meant to be particularly insulting, just realistic.

> As someone who was out of work for ~13 months during the dotcom bust; this is absolutely false.

I didn't consider exceptional events such as the dotcom bust, or the 2008 financial crisis or the Coronavirus pandemic and subsequent inflation. If we include those, I do agree that if makes sense to fear losing your job.

I do concede that we've had multiple "once-in-a-lifetime" industry upsets in a very short while and with that context it could make sense to panic. But in normal circumstances, I still think fearing job loss as a millionaire comes from somewhere more emotional/instinctual than rational.

Re:Linux desktop market share climbs to 4.45% on Wednesday August 21, 2024 @03:23PM (#41313338)
I was looking around a while last year and those two are the exact ones I landed on, with a slight lean towards Pop!_OS due to the team behind it striving for maximum "out-of-the-box" usability.

Linux Mint has a special place in my heart as it was the first distro I used back in my high school computer science class and it holds up exceptionally well today. It's also community driven compared to Pop!_OS which is developed by System76.

Re:The anatomy of a 2AM mental breakdown on Wednesday August 21, 2024 @01:34PM (#41312405)
If you're making enough to sustain a $2M net worth, either you are skilled enough to be able to find another job quickly (highly experienced individuals are always in demand) and you are just not confident enough to realize your worth—or, you are not skilled enough to get another job quickly and are being paid above your worth.

In any case, I would suggest saving up an emergency fund to the point that you are not scared of losing your job. I understand making that people must make commitments (car payments, mortgages, student loans, etc.) and that the risk of not paying them off is always there. But I would hope that a millionaire of all people has enough collateral for a loan if necessary, and that they would have good enough credit to be approved.

If you have your finances in order, you should not be scared of losing your job. Having actual fear from the thought means that maybe your assets aren't working for you (they are all deprecating assets or the cost of their upkeep is higher than the return). The one thing that can and should terrify you is illness or injury that makes you unable to work.

Re:Migrating from DokuWiki to Obsidian on Wednesday August 21, 2024 @01:20PM (#41312299)
Care to share which plugins you use? I'm interested in GMing some lesser known RPGs.
Re:The anatomy of a 2AM mental breakdown on Wednesday August 21, 2024 @02:18AM (#41307307)
Then you are living above your means. Having $2M in assets puts you in the top 5% in the USA, let alone with world. If you can't figure out a way to pay for food with this much money tied up in assets, you should spend some of your savings on a financial advisor.

There are literal minimum wage workers getting by in the bay. I really can't understand this obsession with not wanting to admit that you are well-off.

Re:The anatomy of a 2AM mental breakdown on Wednesday August 21, 2024 @02:08AM (#41307246)
I wasn't speaking to exceptions. There will always be those who require ridiculous amounts of money to live comfortably—this is not the norm.
Re:The anatomy of a 2AM mental breakdown on Tuesday August 20, 2024 @12:02PM (#41301250)
If you're scared about your financial situation with over a $2M net worth either you are prone to paranoia or you're living well above your means.

I'm constantly surprised how many well-off people try to pass themselves off as "one of the poors". My family and friends do okay with a net worth way below that, in the Bay Area. I've worked minimum wage jobs here in the bay, and had co-workers actually struggling to make it to the next paycheck. It really gets on my nerves when someone in software chimes in with "we're all struggling"—No, we are not all struggling on the same level. Guess how much the person making your fast food or working at your local grocery store is making... And think about how they still live in the same city as you.

"$2M isn't that much". Man, I can't imagine what it takes to come to that conclusion.

There are other forms of rent-seeking; I believe a term that more narrowly fits your definition is "regulatory capture".
All of those were made to solve problems with their predecessors and I believe that almost every one of them (Angular is debatable) has been a success in moving the needle.
Well the advent of (affordable) cars made the whole spread out urban design possible in the first place.
Re:Twitter now requires an account to view tweets on Friday June 30, 2023 @07:46PM (#36544239)
To clarify my position, I do believe in free will; specifically a compatibilistic view of free will. If you read my other replies, you can see that I do advocate for a criminal justice sustem, just not a retributive one (or a restorative one, for that matter).

I do not excuse any crime, nor do I excuse any punishment. Every individual is responsible for their own actions, regardless of the circumstances. However, I see little use in revenge from a legal standpoint. Instead our main motivations should be deterrence and incarceration.

I didn't realize I would need to define the meaning of punitive justice to this crowd, but it's the idea that "the punishment must fit the crime". The idea behind it is to hurt the criminal in order to satisfy the human desire for justice.

The other goals of justice include rehabilitation (re-intgation of the criminal into civil society), deterrence (using the threat of punishment as a means to scare would be criminals), incapacitation (remove dangerous people from society to protect public order), and denunciation (public shaming).

As I mentioned in another reply, I agree with that wholeheartedly. That factor of punishment is called deterrence.

I am in favor of punishment for deterrence, denunciation and incapacitation. I am not in favor of punishment for retaliation (punitive justice) or rehabilitation (restorative justice).

I am a firm believer in deterrence, which you seem to be describing. It's a seperate thing from punitive justice which has a focus on retribution. The method is similar but the aim is different (deterrence focuses on making the cost-benefit ratio for crimes very high, while retribution is mainly to satisfy the human need for fairness through punishment).
It only matters in matters of free will and ethics. One actual scenario where it's relavant would be the discussion around the criminal justice system. If the universe is deterministic, how can punitive justice be justified?
Re:Cookie Clicker saved my PhD on Thursday June 22, 2023 @05:54PM (#36439605)
Not exactly what you're asking for but very similar: Hackits [0][1].

[0] https://blog.haschek.at/2014/why-hackits-are-the-first-thing... [1] https://www.0xf.at/

Re:This Week in Rust 499 on Friday June 16, 2023 @07:50PM (#36365557)
The discord seems active, at least
Re:Lessons from Creating a VSCode Extension with GPT-4 on Friday May 26, 2023 @12:51AM (#36080093)
> The biggest problem w gpt 4 is the cutoff date. The LLM needs to be updated regularly, the way Google initially seemed to crawl all the things and make them available to queries as they appeared.

Have you tried out Phind? It's essentially GPT-4 + internet access. It hasn't been perfect, but it's been a very useful tool for me.

Re:Lessons from Creating a VSCode Extension with GPT-4 on Friday May 26, 2023 @12:47AM (#36080069)
Unless your documentation is 20~100x the size of your codebase and written in a conversational tone, the LLM won't be able to be asked any questions about it using English.

If your only aim is to use it like Copilot, sure, it's useful.

Re:Don Knuth Plays with ChatGPT on Saturday May 20, 2023 @03:18PM (#36014746)
It has an effect on the output, but not because of any output buffer as far as I know. It's just my preferred way of encouraging the AI to be more precise.

Another prompt that would work the same way would be: "Ensure your response does not include any of the above words."

ChatGPT (at least 3.5, I cannot say anything about GPT-4) will "understand" better when you reiterate your most important constraints.

Re:Don Knuth Plays with ChatGPT on Saturday May 20, 2023 @12:55PM (#36013548)
> At best, chat GPT told me a 3 paragraph sentence that java String was an array of UTF-16 characters, which is not quite the case since JDK 9 as I know. There's no mention of compact strings.

For what it's worth, I got both ChatGPT and Bing chat to include compact strings in their replies to my query. I think people need to be much more specific in their prompts instead of expecting the LLM to read their minds exactly as to how much detail should be provided.

Re:Don Knuth Plays with ChatGPT on Saturday May 20, 2023 @12:52PM (#36013509)
I asked your question to Claude but added a line specifying that I wanted more technical details. It actually included a line mentioning a cache but that's about it.

Here is Claude's response:

---

Strings in Java are implemented as objects of the String class. Under the hood, Java strings use the following internal representation:

- A char array to store the characters of the string

- An integer storing the length of the string

- Some other internal fields for synchronization and cache (since Java 5)

When a string is created in Java, a char array is allocated to store the characters of that string. The length integer is set to the actual length of the string.

For example, if you create a string like this:

  ```java
  String s = "hello";
  ```
Java will do the following:

- Allocate a char array of size 5 to store the 5 characters 'h', 'e', 'l', 'l', 'o'

- Set the length field to 5

- Initialize the char array with the string characters

So the internal representation in this case would be:

- A char[5] array initialized to {'h', 'e', 'l', 'l', 'o'}

- length = 5

When string operations like concatenation are performed, a new char array is allocated to store the resultant string and the length is updated accordingly. The String class then manages this char array and length field.

So in summary, Java strings use a char array and length field as their internal representation, and the String class encapsulates and manages this representation. The char array approach provides an efficient implementation for string operations in Java.

Re:Don Knuth Plays with ChatGPT on Saturday May 20, 2023 @12:37PM (#36013357)
ChatGPT itself can speak in as many languages as there are on the internet, since it's trained on that data. It's quality is likely proportional to the amount that any language is used online on any indexable site.

From what I've used so far in other languages, I'm very impressed. It's able to understand and speak slang, a mix of other languages and English (e.g. Spanglish, Japlish, Hinglish), language written in latin text where the original language is not (romaji, romanized hindi, arabizi), and more.

Re:Don Knuth Plays with ChatGPT on Saturday May 20, 2023 @12:31PM (#36013295)
I was very curious as to whether I could improve your initial prompt and this is what I got:

----

ME: Stop using words like please, sorry, apologize, etc. speak plainly.

Double check your response before sending it, and if it contains any of the above words, rewrite it.

GPT: Understood. I will avoid using those specific words in my responses and make sure to review them before sending. Thank you for the clarification.

ME: Refrain from using Thank You as well in the future

GPT: Got it. I will refrain from using "Thank you" in my future responses. Is there anything else you'd like me to keep in mind?

ME: No, that will be all. Why do AI's like ChatGPT deviate from their prompts at times?

GPT: AI models like ChatGPT can occasionally deviate from their prompts due to several reasons:

1. Interpretation: The model might interpret the prompt in a different way than intended, leading to a response that doesn't precisely address the user's request.

2. Lack of context: The AI model doesn't have access to real-time information or the ability to perceive the world directly. It relies solely on the training data it was provided, which might not include the most up-to-date information or context.

3. Creative generation: AI models have been designed to exhibit creative behavior and generate original responses. Sometimes this creativity can result in responses that deviate from the prompt but still offer interesting or unexpected insights.

It's important to note that AI models like ChatGPT are not perfect and can produce incorrect or irrelevant outputs. Continual research and improvement are necessary to enhance their performance and align them more closely with user expectations.

----

I used ChatGPT on iPhone for reference. I know the model is slightly different from the website, as when you open the came chat on Desktop you get a message saying "The previous model used in this conversation is unavailable. We've switched you to the latest default model." Also, when asking the ChatGPT app about itself, it seems to be aware that it is on an iPhone app.

Ultimately, I think knowing how to prompt LLMs effectively is a skill just as valuable as knowing how to use search engines effectively.

Is this what MANGA stands for? I saw it before in the context of FAANG/MANGA companies but never realized it's just because Facebook is now Meta.

I tried Bing Search which told me it might mean Microsoft, Alibaba, Nvidia, Google and Amazon for "some of the leading companies in cloud computing and artifical intelligence." But the "source" it gave me was the Wikipedia article for Japanese comics.

Older »