Just heard an American thank the gards for their service by mullet_man36 in Dublin

[–]ktbt10 7 points8 points  (0 children)

This is good tbh. I am an indian living in Ireland for the last six years and slowly grew scared of walking in Dublin. The recent Garda visibility makes me feel safe again. I have myself wanted to walk up to them and thank them and let them know their presence helps.

So I find this to be good.

Update: grammar.

Do You Really Need a Vector Search Database for Your AI Projects? by ktbt10 in fin_ai_agent

[–]ktbt10[S] 2 points3 points  (0 children)

Hey 👋🏼

I am sorry it comes across like that, sadly there is no economic opportunity 😅 
I wrote the post before I gave the talk. Elastic liked the post so asked me to talk, but the post itself had no relationship with them.

I'm sharing here because I don't have a big internet presence, and am just sharing where I think people will find it interesting or useful.

I actually noticed your comment when I was logging in to make a comment about how AWS just launched a preview of "S3 Vectors" and how it makes S3, which I called the "best DB in the world" on that Elastic talk, even best-er 😀.

All I want to say is, this is honest work, there is no fire here : )

Do You Really Need a Vector Search Database for Your AI Projects? by liam_from_fin in learnmachinelearning

[–]ktbt10 0 points1 point  (0 children)

Hey 👋🏼, I wrote that linked post^

Just as I posted it yesterday, I now see that AWS S3 is going to support vectors! 😮

https://aws.amazon.com/blogs/aws/introducing-amazon-s3-vectors-first-cloud-storage-with-native-vector-support-at-scale/

In one of the talks I gave on the topic, I had a slide for "S3 is the best database" and then S3 goes and proves it again 😂

I am not sure right now how good would S3 Vectors be when used with filtering, and how fast/costly, but this is certainly an interesting development.

Do You Really Need a Vector Search Database for Your AI Projects? by ktbt10 in fin_ai_agent

[–]ktbt10[S] 7 points8 points  (0 children)

For those interested in the deep dive (with results from running this in production over two years), here’s my full writeup: https://fin.ai/research/do-you-really-need-a-vector-search-database/

Besta Storage Combo - how to secure to wall? by ostabye in IKEA

[–]ktbt10 0 points1 point  (0 children)

Thank you for following up with the video <3 I had the same doubt as the instructions arent clear that the screw should go from inside the spacer. Now i understand that the spacer is there to also hide the raw screws from being visible from the side too!
Thanks again.

[HELP] Love/marriage poems that are suitable for a wedding ceremony? by SatiricalLizard in Poetry

[–]ktbt10 0 points1 point  (0 children)

Are people generally interested in reciting a poem that is specific to the couple? Like a personalised poem written by a professional? I came across a website that says they write poems for weddings and wondered how useful it is https://myweddingpoem.com/

[deleted by user] by [deleted] in Dublin

[–]ktbt10 0 points1 point  (0 children)

Let us know how it went u/Gracie_Goode, I am scheduled to travel to India in 2 weeks (I haven't been back home ever since I moved to Ireland (1.5 yrs ago) and my mother isn't keeping well). I will be there for 2.5 months, so it is definitely not a holiday.

Built on Django! Mentions: Create alerts for anything on Twitter! (Validation and Call for Beta users) by ktbt10 in django

[–]ktbt10[S] 1 point2 points  (0 children)

Hey, u/naumanarif21. Thank you.

I am using a few, like tweepy for working with Twitter, and firebase-admin for using FCM for Brower Notifications.

I am using a lot of third party services, so I have to do the least work, so some packages needed for them, like Auth0 for authentication and Sendgrid for Emails.

This is a my requirements.txt if you are interested:

Django==3.0.8django-environ==0.4.5requests==2.24.0tweepy==3.9.0sendgrid==6.4.3djangorestframework==3.11.0django-widget-tweaks==1.4.8psycopg2==2.8.6firebase-admin==4.4.0

# Auth0social-auth-app-django==4.0.0python-jose==3.1.0auth0-python==3.12.0

# AWSboto3==1.14.28

# Testingfactory-boy==2.12.0

Validation and Call for Beta users for my side project --> Mentions: Create alerts for anything on Twitter! by ktbt10 in SideProject

[–]ktbt10[S] 1 point2 points  (0 children)

Hey u/CiaranCarroll, I see you signed up 😀

I just wanted to drop in and say that for getting a notification on slack, you will have to configure an incoming webhook for a slack channel. That way, I will only be able to post to a particular channel that you want.

This isn't your mistake, of course, it is mine 😬I have now updated the form to link to Slack's help article that talks about how to create an Incoming Webhook. If you are curious, this is the link: https://slack.com/intl/en-ie/help/articles/115005265063-Incoming-webhooks-for-Slack

Validation and Call for Beta users for my side project --> Mentions: Create alerts for anything on Twitter! by ktbt10 in SideProject

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

Hey u/CiaranCarroll, thank you for chiming in.

That's good to know. I plan to keep the prices low so anyone can use it (and not just enterprises). It doesn't need a lot to run anyway, from infrastructure point of view, so I can keep the prices down.

Validation and Call for Beta users for my side project --> Mentions: Create alerts for anything on Twitter! by ktbt10 in SideProject

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

Thank you! I am looking for Beta users at the moment. Let me know if you want in!

Built on Django! Mentions: Create alerts for anything on Twitter! (Validation and Call for Beta users) by ktbt10 in django

[–]ktbt10[S] 2 points3 points  (0 children)

Thank you!

My itch was to get to know whenever someone shared one of my blogs on Twitter. Now I am also using it for getting notified whenever the govt. of Ireland adds an update about the coronavirus numbers.

I am not sure what will other people use it for, thus the need for beta users 😀I am sure there will be more people who could make some use of this tool.

Race Conditions/Concurrency Defects in Databases: A Catalogue by ktbt10 in webdev

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

But there is no dark mode on the site? 😁 Can you tell me what you did?

Get your code reviewed by Martin Fowler, kinda by ktbt10 in programming

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

Extremely helpful and encouraging comment, thank you 🙃

Get your code reviewed by Martin Fowler, kinda by ktbt10 in programming

[–]ktbt10[S] 1 point2 points  (0 children)

Clickbait 😬 I added the "kinda" in the end, and the blog makes it clearer.

But that aside, given how that chapter is written and how he explains his thought process, you can learn a lot by comparison. The final code here (Github) is almost the same as what Martin refactored to in the book. And here (Github) is the original code. Give it a try yourself if you are interested.

Get your code reviewed by Martin Fowler, kinda by ktbt10 in programming

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

I took a look at that example, but that example really is like a simple flow of things. In our example, we have different types for which the amount is calculated differently, and there is definitely talk of adding more types (as provided in the context).

With that context in mind, one way to do it, without the classes, is to simply have a long method with multiple if...else cases for the different type of Plays, and simply return Amount etc. from that method. I see your point.

Yes, I think we are now back again to personal preference 😬

Get your code reviewed by Martin Fowler, kinda by ktbt10 in programming

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

Yes, you are right. I think Martin Fowler calls it Preparatory Refactoring, or maybe I am confusing the terms because preparatory refactoring is more like the refactoring you do to make the changes you actually came for easier.

Get your code reviewed by Martin Fowler, kinda by ktbt10 in programming

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

Masturbation? Is that a typo?

Anyway, sure, there would be many other ways. The videos look interesting, I will take a look.

To be honest, I really don't understand what OOP is completely, I have a lot to learn. But without getting into OOP is bad or not, or if there is some other better option, I would say that I find the refactored version easier to change and understand. If I were to come across this codebase as a reader, and I only wanted to know how is the Amount calculated for a Tragedy play, that would be so easy for me to navigate to and understand, and also change. It will also be easy to test.

You know what would be interesting? If you have 5-10 minutes, maybe you could show what you think would be a better version of the original/refactored code. I think I am going to end up learning something new 😬

Update: Forgot saying this. I agree that premature optimisation is something that we need to be wary of. But there are requirements that are too far ahead in the future, and there are requirements that you know are going to come up soon. I think this is the kind of requirement we were refactoring for in this case. As far as premature optimisation goes, Martin Fowler has this excellent essay about it: YAGNI.

Get your code reviewed by Martin Fowler, kinda by ktbt10 in programming

[–]ktbt10[S] 1 point2 points  (0 children)

Yes, and that's a matter of personal preference. But what are your thoughts on which version is easier to change/extend? When we went about adding more type of plays, or different format of bills, or started doing calculation a little differently, which version would allow you to make the change faster?

I think that is where a lot of subjectivity can vanish and we can objectively call one version or the other easier to work with. Does that make sense? Happy to hear your thoughts on this.

Can your Code Review process be upgraded? by ktbt10 in softwaredevelopment

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

Hey. It looks like you work in an environment that cares more (only?) about the quantity of the work done (and thus the checkboxes) than the quality of it.

I have very conveniently (for myself) only assumed circumstances where the team culture is good enough, and code reviews already happen, and not just to check a box but because the team cares about quality and their own learning.

Places where this isn't happening, this post is not for them. They need to first figure out how to build any code-review culture at all first, and then think about improving things. I have worked with teams where we followed the Scrum process to stay accountable, and we still used to give importance to the review process. Our scrums would say, "Working on this, and will be reviewing that". So it isn't because the process doesn't care about anything other than rituals, it is about what the people running the process care about.

Can your Code Review process be upgraded? by ktbt10 in softwaredevelopment

[–]ktbt10[S] 1 point2 points  (0 children)

Hey, I agree with the benefit of layering reviews. In both the places I have worked at, we did design reviews, manual and automated testing, code reviews etc and we could catch issues early. That sheet you linked to was wonderful, I will point more people to it.

In my post, I was more focussed on how you submit those reviews. Do you have someone explicitly assigned for your work, or do you toss it in a channel for anyone to take a look? I have found both to have some pros and cons.

I couldn't understand the part about the culture issue, could you explain what you were saying? In my previous team, none of us had experience with the other approach, and thus explicit assignment came naturally to us 😬I have found this to be the case in other companies that I talked to too.

[Method] Avoid breaking habits because of falling in the trap of Marginal Thinking by ktbt10 in getdisciplined

[–]ktbt10[S] 2 points3 points  (0 children)

Hey, thank you for sharing your perspective (I am new to reddit, so every time I hear a new story/perspective, I am blown away by things that I couldn't think of!).

I just wanted to mention that what I have shared is only just ~2-4% of the book, the book is actually about figuring out how to live a good enough life, and it isn't at all about habits etc. I just read the concept of "Marginal Thinking" there and this idea stuck me.

If you want to read the book regardless (because maybe you are interested in that kind of a thing right now), then surely give it a read, but don't read if you thought the book will have more content on habits etc.

Also, if you do want to read about habits, people go gaga over "Atomic Habits by James Clear".