HD (@dangnhdev) profile picture
Hanoi, Vietnam
Joined June 2016
Photo by HD (@dangnhdev)Photo by HD (@dangnhdev)Photo by HD (@dangnhdev)Photo by HD (@dangnhdev)Photo by HD (@dangnhdev)
Codex can do incredible things on demand, but it cannot experience life for you. Donโ€™t forget to get out there and remember who youโ€™re building for.
430
360
85
6,253
249,114
uv is the best thing that has happened to Python devs! And you won't find a better cheatsheet than this:
25
150
5
1,225
101,780
Automates multilingual video translation and dubbing
1
46
1
407
15,675
๐Ÿ”ฎ My current 'philosophy' and defaults when building AI features in Laravel: gist.github.com/ashleyhindleโ€ฆ ๐Ÿ‘Œ Tell me what I missed, or which bits you disagreed with so it can be better ๐Ÿซถ
8
1
38
2,610
CSV editor for huge files, open source, works on Mac, Windows, Linux
3
146
3
1,039
52,200
Need a temporary production-grade Postgres DB to quickly test something? ๐Ÿš€ Run `npx create-db@latest` and get a connection string, no login needed! Bonus: You can keep the DB beyond 24 hours if you need it, just claim it ๐Ÿ˜‰ ๐Ÿ‘‰ pris.ly/create-db
4
10
5
97
83,934
FilamentPHP Power Tip: Reuse resource forms in relation managers for a smoother workflow! #filamentphp #laravel #php #devtips
1
5
1,027
i will never forget i am connected to prod again
26
129
27
1,967
192,620
Japanese colours you can use instead of #ffffff for your UI design
14
232
9
1,808
137,039
Understand CSS clamp() function with the following explanation ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿš€
17
224
5
1,449
142,195
just discovered that you can use `scrollbar-gutter: stable;` to prevent layout shifts when scrollbars appear
34
148
10
1,682
181,421
๐—ง๐—ผ๐—ฝ ๐Ÿฎ๐Ÿฌ ๐—ฆ๐—ค๐—Ÿ ๐—พ๐˜‚๐—ฒ๐—ฟ๐˜† ๐—ผ๐—ฝ๐˜๐—ถ๐—บ๐—ถ๐˜‡๐—ฎ๐˜๐—ถ๐—ผ๐—ป ๐˜๐—ฒ๐—ฐ๐—ต๐—ป๐—ถ๐—พ๐˜‚๐—ฒ๐˜€ Here is the list of the top 20 SQL query optimization techniques I found noteworthy: 1. Create an index on huge tables (>1.000.000) rows 2. Use EXIST() instead of COUNT() to find an element in the table 3. SELECT fields instead of using SELECT * 4. Avoid Subqueries in WHERE Clause 5. Avoid SELECT DISTINCT where possible 6. Use WHERE Clause instead of HAVING 7. Create joins with INNER JOIN (not WHERE) 8. Use LIMIT to sample query results 9. Use UNION ALL instead of UNION wherever possible 10. Use UNION where instead of WHERE ... or ... query. 11. Run your query during off-peak hours 12. Avoid using OR in join queries 14. Choose GROUP BY over window functions 15. Use derived and temporary tables 16. Drop the index before loading bulk data 16. Use materialized views instead of views 17. Avoid != or <> (not equal) operator 18. Minimize the number of subqueries 19. Use INNER join as little as possible when you can get the same output using LEFT/RIGHT join. 20. For retrieving the same dataset, frequently try to use temporary sources. Do you know what is ๐—ค๐˜‚๐—ฒ๐—ฟ๐˜† ๐—ข๐—ฝ๐˜๐—ถ๐—บ๐—ถ๐˜‡๐—ฒ๐—ฟ? Its primary function is to determine ๐˜๐—ต๐—ฒ ๐—บ๐—ผ๐˜€๐˜ ๐—ฒ๐—ณ๐—ณ๐—ถ๐—ฐ๐—ถ๐—ฒ๐—ป๐˜ ๐˜„๐—ฎ๐˜† to execute a given SQL query by finding the best execution plan. The query optimizer works by taking the SQL query as input and analyzing it to determine how best to execute it. The first step is to parse the SQL query and create a syntax tree. The optimizer then analyzes the syntax tree to determine how to run the query. Next, the optimizer generates ๐—ฎ๐—น๐˜๐—ฒ๐—ฟ๐—ป๐—ฎ๐˜๐—ถ๐˜ƒ๐—ฒ ๐—ฒ๐˜…๐—ฒ๐—ฐ๐˜‚๐˜๐—ถ๐—ผ๐—ป ๐—ฝ๐—น๐—ฎ๐—ป๐˜€, which are different ways of executing the same query. Each execution plan specifies the order in which the tables should be accessed, the join methods, and any filtering or sorting operations. The optimizer then assigns a ๐—ฐ๐—ผ๐˜€๐˜ to each execution plan based on the number of disk reads and the CPU time required to execute the query. Finally, the optimizer ๐—ฐ๐—ต๐—ผ๐—ผ๐˜€๐—ฒ๐˜€ ๐˜๐—ต๐—ฒ ๐—ฒ๐˜…๐—ฒ๐—ฐ๐˜‚๐˜๐—ถ๐—ผ๐—ป ๐—ฝ๐—น๐—ฎ๐—ป with the lowest cost as the optimal execution plan for the query. This plan is then used to execute the query. Check in the image the ๐—ผ๐—ฟ๐—ฑ๐—ฒ๐—ฟ ๐—ถ๐—ป ๐˜„๐—ต๐—ถ๐—ฐ๐—ต ๐—ฆ๐—ค๐—Ÿ ๐—พ๐˜‚๐—ฒ๐—ฟ๐—ถ๐—ฒ๐˜€ ๐—ฟ๐˜‚๐—ป. #technology #softwareengineering #programming #techworldwithmilan #sql
68
1,632
36
8,056
984,591
This interface is a little "hidden" but you can access it easily. First, check that you have access to Google Search's AI functions. 1. Go to labs .google 2. Click on "Get started" in the Google Search category 3. Activate "SGE generative AI in Search" Next, write a prompt like I already showed you to draw an image in Google. Example: โ€œdraw a submarine in the skyโ€ Once your images are generated, click on one then โ€œEditโ€.
35
140
7
834
127,657
Ironically, it can be harder to start another company once you know how hard and painful it really is. Thereโ€™s a reason so many founders struggle with mental health.
15
45
20
533
111,211
Top 6 Linux Networking commands to learn 1. curl - bit.ly/3wzSFgM 2. wget - bit.ly/3QYfwL6 3. nslookup - bit.ly/3BZ7ehr 4. netstat - bit.ly/3JQuEY6 5. ssh - bit.ly/3AHmpta 6. scp - bit.ly/3VHYToq more bit.ly/3VHYVg2
28
543
9
2,207
313,078
Negotiating your salary is the fastest way to increase it. But 99% of people don't know how. With ChatGPT you have a your own salary negotiation coach. Here's how to nail your next pay raise (using ChatGPT):
81
561
44
4,095
1,529,071
Startup founders, What's the most effective marketing strategy you've implemented so far? #buildinpublic
64
9
82
28,757
1/ ChatGPT has limited memory. It forgets details if your chat runs beyond ~8k words. But Shogtongue lets you extend conversations by 5-10x easily Hereโ€™s how:
78
384
51
2,561
1,040,769
1. Session, Cookie, JWT, Token, SSO, and OAuth 2.0 - here's what you need to know These terms are essential for identifying, authenticating, and authorizing users online. Let's dive in๐Ÿ‘‡
42
580
4
2,328
215,727