GustavoToyota
u/GustavoToyota
Tive essa dúvida sobre terminologia no xadrez e resolvi dar uma pesquisada. Não encontrei nada oficial (tipo alguma definição da FIDE), mas a Wikipédia corrobora com o que você falou, por exemplo:
https://pt.wikipedia.org/wiki/Abertura_%28xadrez%29
Essa página diz: "Defesa: Sempre se refere a uma abertura escolhida pelas pretas"
https://pt.wikipedia.org/wiki/Defesa_siciliana
Essa página diz: "A defesa siciliana é uma abertura de xadrez"
Então pelo menos de acordo com a Wikipédia uma defesa é considerada uma abertura.
Pela definição, eugenia é simplesmente a manipulação proposital da genética de uma população (não necessariamente humana), seja por controle da reprodução, manipulação dos genes, ou esterilização forçada. Então a princípio não tem nada a ver com superioridade de raça. Só acontece que a história da eugenia está profundamente conectada a problemas éticos devido à sua aplicação em seres humanos.
This one has more information: https://www.dailymail.co.uk/news/article-11837771/Calum-von-Moger-brother-edward-dead-boomerang.html
I checked the , but I still don't understand.
In my head, I thought worked by doing something like this:
currentRequest = <someReference> renderComponent() // If the function returned by React.cache is called here, then it will know the current request currentRequest = null
But its behaviour is not very well documented and I couldn't understand by reading the source code.
Is it correct to say that the cache function should only be called synchronously, as if calling a hook?
If it's called asynchronously (after an await), is there a risk of it returning cached data from another request? Or is there some sort of thread-like separation, where the cache function is always guaranteed to return the current request's cached data?
Imagine human beings as black boxes. We have inputs, we do something with them, and we output something.
Our inputs are all the information we have access to in the present moment. Our present senses (sight, smell, touch, ...), knowledge, memories, imagination, etc. Our outputs represent the information that comes out from us: our choices/actions.
Notice that we don't control the inputs to our black boxes. The universe is the one who decides what happens inside itself and what information we are given access to in the present moment. So the Stoics tell us we can't put our happiness at the mercy of any one type of input. We can have objects of desire, but we should recognize that their achievement must be optional. Their achievement or not shouldn't affect our tranquility in any way. For the Stoics, all dependencies are optional, even life itself.
Stoics find happiness by cultivating the only thing they can control in this system: what happens inside their black boxes, that is, the transformation of their inputs into their outputs. Notice the Stoics don't care about what kinds of inputs they receive from the universe. Whatever inputs the universe decides to give them, they will work with them, and try to produce good outputs.
But there's one more piece to this puzzle which relates to your question about socialization: harmony. Harmony is the alignment between parts of a whole. Just as our organs cooperate with each other to keep us alive, we must recognize that we are also part of a whole, and should seek to align ourselves with other parts of this whole.
To the Stoics, harmony is the closest thing to the meaning of life, but harmony is different for different people. We each have different responsibilities, and harmony is achieved by attending well to those responsibilities, and keeping a good alignment with the rest of the whole.
There is harmony to be cultivated both within us, and outside of us. In your examples, exercise, healthy eating, and good sleep can be considered internal harmonization activities, which increase the alignment between parts of your own body. Social connections represent alignment with other parts of the whole.
You have things right, but you still have to keep in mind that harmony is still outside of our control. Harmony is optional, but the search for harmony is not.
It starts throwing Error: Could not find the module "/unused-lazy-component-still-loads-nextjs/src/app/components-list.ts#components#Component1" in the React Client Manifest. This is probably a bug in the React Server Components bundler.
This happens even though I modified Component1 to be a client component.
Let's say I have a list of lazy components, like this:
import dynamic from "next/dynamic";
const MyComponent1 = dynamic(() => import("./my-component-1"));
const MyComponent2 = dynamic(() => import("./my-component-2"));
const MyComponent3 = dynamic(() => import("./my-component-3"));
export const components: Record<string, any> = {
MyComponent1,
MyComponent2,
MyComponent3
};When I use one of the components on this list, I see that all the other components' client code are sent to the browser as well:
import { components } from "./components";
export default async function Home() {
const Component = components["MyComponent1"];
return (
<div>
<Component />
</div>
);
}This is in production. What is happening here? Are lazy components really lazy?
What can I do to not send unused lazy components' code to the browser?
All of these components are required to be in the source code, just different users will see a different set of these components.
The same thing happens when using React.lazy.
This extra code is actually taking many points off of our PageSpeed score.
Reproduction repo:
Flappy Bird: 2013 mobile game developed by Dong Nguyen. The game became a sleeper hit, earning $50,000/day. Nguyen removed the game from app stores in 2014, claiming guilt over the game's addictiveness and overusage. This caused phones with the game installed to be put up for sale for high prices.
Yeah but the Mario pipes were a little too obvious.
The project is basically a bunch of Java technologies thrown together, but hopefully in a way that helps beginners learn and experiment.
Repository:
Currently featured technologies:
-
Spring Web, MVC, WebFlux, GraphQL
-
Spring Security (only basic auth and form-based auth for now)
-
Spring AOP
-
Database stuff: JPA, Hibernate (with PostgreSQL), MongoDB
-
Messaging: Kafka, RabbitMQ
-
Templates: Thymeleaf, JSP
-
Testing: JUnit, Mockito
-
Other stuff: Swagger, Lombok, File uploading
The project is ongoing. I plan to keep adding features and helpful notes and comments, writing at least one README for each technology or group of technologies.
Do you think this could be useful?
Basically I started programming at 12 playing with Delphi/Pascal, went to university in computer science at 19, and started working as a developer by 23. I developed DeepNotes at 26 years old.
For DeepNotes I used Vue for frontend, Yjs for realtime collaboration, Sodium for cryptography, and TRPC + Redis + Postgres for backend.
Just showing that you can build kanban boards using the app's building blocks. It has many more features: https://www.reddit.com/r/NoteTaking/comments/1870msx/page_navigation_mechanics_in_deepnotes/
I'm using ollama and I have a RTX 3060 TI. Using only 7B models.
I tested with Mistral 7B, Mistral-OpenOrca and Zephyr, they all had the same problem where they kept repeating or speaking randomly after some amount of chatting.
What could it be? Temperature? VRAM? ollama?
Edit: Also I have 64GB RAM
-
DeepNotes has extreme security with end-to-end encryption. Miro has standard level of security.
-
Miro is more focused on diagramming and has a more diverse set of features, like charts, frames, shapes, comments, voting, timers, chat, etc. DeepNotes is more focused on information organization and only has pages, notes and arrows, but notes are somewhat mutant and can take many forms.
-
DeepNotes was designed for depth and interlinking: it allows to conveniently create pages within pages, and notes within notes. Miro focuses on singular shared boards and one level of element hierarchy.
Please let me know if there's something incorrect.
Yes. Trello is more focused on kanban boards.
DeepNotes is more focused on information organization and lets you create stuff like this: https://deepnotes.app/pages/euYw8Xg1JJ1I1BOpWkuA5
But what happens if you click a mine? Do you have to completely restart from the beginning?
The player loses an HP, and when they die they go back to the last checkpoint and the map is regenerated randomly.
Do you get gold to kind of kick start something or how does the gameplay loop work?
I'm not sure yet. It's all experimental.
My prototype for the game evolved a little bit after my last post
Some changes include:
-
There's now the guarantee that every cell is reachable
-
Interaction with objects
-
The player no longer walks immediately into the rock it clicked
-
Better assets
-
More focus on closed-space minesweeping
-
Moved the development to Godot (was using pure HTML5 + JS)
My idea now is to make a main story with quests and mini-games inside it, like searching and collecting objects, reaching certain locations or clearing the map as fast as possible, puzzles, dungeons, among others. I want to add the ability to have a No Guess Mode, but that's looking pretty difficult to implement right now.
That's it for now. Let me know what you think!
You can still see the previous version in the website: https://minedelver.com
Link:
For now it's just an infinite minesweeper with a 2D character. My idea was to add some RPG elements to it in the future.
Do you think it has some prospects?
If you wish to delete your account data and subscription please send an email to contact@deepnotes.app from your registered email.
See how other end-to-end encrypted apps handle forgotten passwords:
It's impossible to recover your account if you lose your password due to the end-to-end encryption: https://deepnotes.app/help/forgot-password
Design patterns are essential for building loosely coupled code. For me the most important ones are the Strategy, Chain of Responsibility, Observer, and Adapter.
I made a little "cheatsheet" of design patterns that may help some people: https://deepnotes.app/pages/TLba-tjq6uoNSKWKwKRCQ
For example when you do databases I'd have: AP include both Cassandra and Kafka while CP including Neo4J and MongoDB and CA (you don't have any but things like Postgres would go here) with your ORMs under CA design patterns. But my point is you didn't do that because you aren't thinking about the world that way. The way you are thinking about the world does seem reflected in your notes.
Interesting way to organize. I'll try doing something like that.
Where I do think this gets worse is your "Serverless" and "Cloud". You need to abstract here about serverless in general and serverless as applied in company specific clouds. In most of the map you are being cloud vendor agnostic, why break that pattern here at the top level?
Yeah, I think DevOps is the thing that I know the least, so I just put these notes there to remember that the vendors exist. I'll probably create a page specifically for DevOps and throw these notes there.
I'm storing all my notes about software development in this page:
I hope it could be useful to someone.
(I'm the developer of DeepNotes)
I'm storing all my notes about software development in this page:
What do you think can be improved?
I'm storing all my notes about software development in this page:
Let me know what you think!
Also I'd say that if DeepNotes has the encryption keys that somewhat defeats the purpose. You can get subpoenaed for the data. The point of encryption for most businesses is to prevent the company storing the data to have access to it.
The root encryption key is derived from the email + password of the user on the client side, so the server never sees it. All data is encrypted on the client side before being sent to the server.
There are some encryption keys on the server, but it's just extra protection added on top.
Your open group encryption process doesn't handle the problem of legacy access to the data. I think if you want to do that, you'll need more than encryption likely a trusted computing environment.
By legacy access, do you mean that if the owner dies there must be a way to transfer ownership to another user? If so, then I think the lack of legacy access should be a good thing for an end-to-end encrypted app. It shows that the data is truly private. I recommend to add multiple owners to groups to avoid losing access to the data.
I'd honestly get rid of the paid version to bypass page limits and multiuser. Your functionality isn't ready to compete with paid applications which are close to you in price. I think GPLed is a plus.
I'd integrate with something like KDE and have it run off a local database for multiuser (like a typical desktop game server). Potentially since you already have a mac version, same thing for Mac. Make it easy to install the entire package and manage at departmental levels as free and cloud. Offer the managed cloud hosting as an upgrade at some cost rather than tying it to things like page limits and multiuser.
Thank you for the suggestions, I'm gonna think about that.
For now you can import and export markdown files, with some limitations:
-
You can only export one note (plus their descendants) at a time. Still have to implement zipping many files together.
-
You can only import markdown within containers for now, to limit the amount of mess on the screen after importing.
Still working on other kinds of importing/exporting.
I had enough of the popular PKM tools and decided to create my own:
I'm making my notes public here to show how I'm using it myself:
What's different from other tools:
-
Infinite canvas, so I'm not locked to a single wall of text.
-
Unique note system: notes can have three sections: head, body and container. Container allows to place notes within each other. Head and body allows the creation of collapsible notes.
-
Unique page navigation system: while most apps lock you in a tree-like page hierarchy, in DeepNotes the pages are detached and don't have any hierarchy. The user creates their own navigation system by linking their pages.
-
End-to-end encryption, so users don't have to worry about their privacy.
Please let me know what you think!
-
For the background lines, I use one SVG pattern with 2 perpendicular lines and stretch it to make it repeat and fill the screen.
-
For the arrows, I just create their SVG elements and let the SVG take care of the rendering.
Link to canvas:
on a side note, what sparked the idea for an infinite canvas? was it a personal pain point or user feedback? the genesis of a project can often shine light on its trajectory.
Definitely a personal pain point. This tool was born out of my bad memory + passion for learning + ability to code. I've always had bad memory, so when I tried to learn something it was like building a sand castle, it kept falling apart. I spent hundreds of hours trying to understand some complex topic, but my notes were a mess and my knowledge faded away. So I decided to develop a tool that would help me build brick castles, and DeepNotes is the result of that.
also, how do you handle data storage for endless notes? do you have a specific strategy to keep it light and efficient?
For now there's no strategy, really. I just developed it while saving space where appropriate. I've spent thousands of hours already putting my notes in this app, while other people are using it as well, and the total size is still 213MB. So I'm not too worried about storage right now.
There are some pros and cons when comparing to Obsidian.
Pros:
-
The note system is more flexible and convenient: Obsidian Canvas has notes and arrows that you can group with frames. In DeepNotes, there are only notes and arrows, but the notes are kinda like transformers, you can create collapsable notes, put notes inside other notes to create note hierarchies, create kanban boards, create note galleries, and much more.
-
Ability to create and manage groups: You can create collaborative groups and manage who can edit pages, view pages, invite members, remove members, just like if it was a chat app like WhatsApp.
-
Realtime collaboration: DeepNotes allows true live collaboration, while Obsidian's closest feature is file syncing with Obsidian Sync, which isn't really realtime collaboration.
-
Notes remain protected at all times: Obsidian stores all notes locally and unencrypted, which could be a hazard in case your device is stolen or hacked. In DeepNotes your notes remain end-to-end encrypted even at rest. Though, if you choose the option "Remember session", then your data becomes more vulnerable to stealing and hacking. Even then you still have the option to create password-protected groups, which requires you to type an extra password for access.
-
Open source: DeepNotes is open source. If you don't like something, you can create a fork and fix it.
Cons:
-
No support for high-performance text search: DeepNotes trades off the ability to have high-performance text search for extreme privacy with end-to-end encryption. Obsidian has high-performance text search due to the files being stored locally.
-
No ability to add plugins: DeepNotes wasn't designed to allow the addition of plugins. You can send pull requests it you want something changed, though.
-
No offline support: DeepNotes requires the user to be online due to some technical requirements. It may be possible to allow offline support in the future, but it would require some heavy engineering effort.
Please correct me if I'm wrong on anything.
Link: https://deepnotes.app/
Edit: I'm making my notes public here to show how I'm using it: https://deepnotes.app/pages/euYw8Xg1JJ1I1BOpWkuA5
Yes, you can see the source here: https://github.com/gustavotoyota/website
The website is here: https://gustavotoyota.dev/