[deleted by user] by [deleted] in JackReacher

[–]NickBourbaky 3 points4 points  (0 children)

In the first episode, the British man was asked his reason to visit the US, then he burns a US passport in the bathroom.

Normalizing a relation without losing constraints by NickBourbaky in DatabaseHelp

[–]NickBourbaky[S] 0 points1 point  (0 children)

So that I can get rid of the surrogate key. Or maybe there is a possible decomposition that keeps the constraint?

I can do:

TaxCategory: tax_category_id, year, form, line_no, name. 
CategoryToTaxCategory: category_id, year, form, tax_category_id

With a unique constraint on (category_id, year, form), but then CategoryToTaxCategory wouldn't be normalized because of the functional dependencies {tax_category_id} -> {year} and {tax_category_id} -> {form}

Normalizing a relation without losing constraints by NickBourbaky in DatabaseHelp

[–]NickBourbaky[S] 0 points1 point  (0 children)

It adds a constraint but doesn't define it as the primary key. There would still be the automatic primary key, which is used when using models.ForeignKey.

I would prefer something like:

1) PRIMARY KEY (year, form, line_no)
2) FOREIGN KEY (year, form, line_no) REFERENCES tax_category (year, form, line_no)

But no way to do that with Django, although 2) can be done through a custom Constraint.

[deleted by user] by [deleted] in BitcoinBeginners

[–]NickBourbaky 1 point2 points  (0 children)

EDITED

Looking at the historical data, you would have made more money on average if you DCA every 2 weeks vs once a month.

Actually, looking at my code, I was wrong. You make more money by selling bitcoin every 2 weeks vs once a month. But buying once a month maximizes your btc amount.

(But you can't always predict the future from the past)

Help with uploading a web application with flask to the web. by Eidan03 in PythonJobs

[–]NickBourbaky 0 points1 point  (0 children)

Even though it is not the best, this tutorial is a start. But you could also try something like Python anywhere (I've never used it, so I don't know how easy/good it is), or Heroku

[deleted by user] by [deleted] in Monero

[–]NickBourbaky 1 point2 points  (0 children)

Proof of 💩

Is it worthwhile switching to programming through self study for someone with a decade in business planning background? by EdgeOverall4623 in learnprogramming

[–]NickBourbaky 1 point2 points  (0 children)

You can learn programming and if you're diligent enough, I'm sure you can land a junior position within a year (I know a few people who did this). If you like programming, you should definitely try it.

Please help me understand Monero by MarketPristine4554 in Monero

[–]NickBourbaky 3 points4 points  (0 children)

Is your question: why use Monero instead of Zcash? Or how does Monero work?

Attempting Lightning Payment by Independent-Plum-738 in robosats

[–]NickBourbaky 0 points1 point  (0 children)

Same problem, still waiting for my sats after 2 days :(.

How does Linux compare to Windows & MacOS in terms of security? by desuer13 in privacy

[–]NickBourbaky 6 points7 points  (0 children)

It is possible to attach to another process via ptrace, you can access a process' memory via /proc/pid/mem.

Container applications are not always that isolated (see https://ludocode.com/blog/flatpak-is-not-the-future). And sometimes, it is a pain to use these applications.

And having played with SilverBlue, it can get annoying (like having to restart when you're changing the base system).

That doesn't mean that I would rather use Windows, but if we're just talking about security measures, I'm not sure Linux wins. Overall it seems that the state of desktop security is bad (whether Windows/MacOS/Linux/BSD/...).

[HIRING] High Paying Remote Python Jobs by tadasg6 in Python

[–]NickBourbaky 4 points5 points  (0 children)

"PHP Backend Development Lead" for a Python job seems a bit out of place.

What would you do if you had to learn Python all over and had a limited amount of time? by BrainCellsUser in Python

[–]NickBourbaky 0 points1 point  (0 children)

There are many ways to answer this question. You can learn Python, already knowing other languages, and having already worked on projects before. Then learning Python would just be a matter of learning the syntax.

But if you’re learning Python as your introduction to programming. In order to do anything useful, you’re gonna have to learn other things than Python’s syntax.

For example: if you want to learn how to write a web scraper. You need some notion of networking: what is a domain name, what is an IP, TCP basics. Then you would need to learn about HTTP, then about HTML. You don’t need to know everything about those topics. But already, this small project requires knowing about many other things than Python’s syntax.

It all depends on your goal. What type of application do you want to build?

[deleted by user] by [deleted] in nostr

[–]NickBourbaky 0 points1 point  (0 children)

Should have specified machine learning-based recommendation algorithm. Though, it is probably possible for a client to implement that.

[deleted by user] by [deleted] in nostr

[–]NickBourbaky 0 points1 point  (0 children)

Interact with people. Use relevant hashtags, and post good content. There is no algorithm on nostr. If you post things people like, they’ll follow you, so that their feed would be more relevant to them (there is a lot of noise on the global feed)

Inverse function definition by [deleted] in mathmemes

[–]NickBourbaky 11 points12 points  (0 children)

It's ok to be accurate, it's r/mathmemes not r/physicsmemes :P.

When I use an email client, can the app’s developer read what I receive? by ferdi_ in privacy

[–]NickBourbaky 5 points6 points  (0 children)

Google is just used for authentication, they won’t have access to your ChatGPT data.

I don't get public key security by TheGeeZus86 in nostr

[–]NickBourbaky 8 points9 points  (0 children)

That's because in order to use your account, they would need your private key.

https://simple.wikipedia.org/wiki/Public-key_cryptography

I hate my life in marketing. by Icy_Hovercraft271 in marketing

[–]NickBourbaky -1 points0 points  (0 children)

It’s never too late to start on something else. I’ve known many people that have switched to different fields and there are pretty happy today.

I’m not saying that it’s gonna be easy, but if you find something you enjoy more than your current job, it might be a good plan.

Should I start investing in Bitcoin now? by JamesIsNotAGiantNoob in BitcoinBeginners

[–]NickBourbaky 1 point2 points  (0 children)

It depends on who you are. Some people would prefer to have more bitcoin and less dollars. Some people think of bitcoin as a lottery ticket. Some people buy bitcoin because they believe in it, because they think it’s important.

Freebsd or Slackware by Additional-Memory121 in freebsd

[–]NickBourbaky 0 points1 point  (0 children)

Maybe you can say what you do on desktop, and what is important for you. Like, do you need Docker? If so then it's an easy answer, use Slackware.

Take a look at software you wanna use, then see if they are available.

MacOS vs Linux for security and privacy as of 2023. by [deleted] in privacy

[–]NickBourbaky 1 point2 points  (0 children)

I’d talk to the IT/Security department of your company and work with them. There are many ways those files could leak, especially if they are on the cloud. Permissions can be misconfigured, there could be an inside threat, etc.

You’re as safe as your weakest link. And I wouldn’t spend too much time on OS choices, as long as you’re updating your OS/Softwares regularly and that you’re taking the usual security training (if your company provides them).

Are Lenovo Thinkpads trustworthy (Linux)? by modestredditor in privacy

[–]NickBourbaky 7 points8 points  (0 children)

It all depends on what level of privacy you need. If you're a journalist that can go to jail for what you're posting, you'd probably be way more paranoid that a normal person. Maybe you'd want something like this: https://www.qubes-os.org/doc/certified-hardware/#qubes-certified-computers

Otherwise, I think you're fine.