- 449
- 597 897
Software Nuggets
United States
เข้าร่วมเมื่อ 23 ธ.ค. 2020
I've been a software developer since the 90's, having crafted thousands of applications, scripts, VBA macros, and more. I affectionately refer to these creations as "software nuggets."
Visit my GitHub account for actual source code to many of these videos:
github.com/softwareNuggets
softwareNugget65@gmail.com
Visit my GitHub account for actual source code to many of these videos:
github.com/softwareNuggets
softwareNugget65@gmail.com
HackerRank: Harry potter and wands, Ollivander's Inventory - SQL Server.
Users will learn how to write a complex SQL query using Common Table Expressions (CTEs) to solve a problem involving filtering and sorting data from multiple tables. They'll understand how to use JOIN operations, aggregate functions, and ORDER BY clauses to extract specific information based on given criteria.
Master the use of Common Table Expressions in SQL queries
Understand how to join multiple tables efficiently
Gain insights into using aggregate functions like MIN in SQL
Understand how to handle multi-level sorting in SQL
Ollivander's Inventory
SEO keywords for finding this video:
SQL, CTE, HackerRank, Harry Potter, Ollivander's wands, JOIN operations, MIN function, sorting data, filtering data, SQL problem-solving
@SoftwareNuggets #softwarenuggets
Master the use of Common Table Expressions in SQL queries
Understand how to join multiple tables efficiently
Gain insights into using aggregate functions like MIN in SQL
Understand how to handle multi-level sorting in SQL
Ollivander's Inventory
SEO keywords for finding this video:
SQL, CTE, HackerRank, Harry Potter, Ollivander's wands, JOIN operations, MIN function, sorting data, filtering data, SQL problem-solving
@SoftwareNuggets #softwarenuggets
มุมมอง: 30
วีดีโอ
Rust: Learn Rust Traits with Practical Code Example
มุมมอง 20วันที่ผ่านมา
Learn Rust Traits with Practical Code Example We begin by creating a Shape trait, defining the area and display functions, which represent the core functionality of various shapes. Using Rust trait objects, we demonstrate how to implement the Shape trait for a Rectangle struct, encapsulating properties like width and height. What Rust traits are and how to define them How to use dynamic dispatc...
Learn Python TkInter: Build a World Flags Guessing Game Application step-by-step.
มุมมอง 10414 วันที่ผ่านมา
Learn Python TkInter: Build a World Flags Guessing Game Application, step-by-step Embark on an exciting journey to learn Python and master TkInter, one of the most popular GUI frameworks for Python. In this comprehensive, step-by-step tutorial, you'll build an engaging World Flags Guessing Game Application from scratch. This project-based learning experience is perfect for beginners and interme...
ASM Language (L10), How to DEBUG an assembly language program using GDB
มุมมอง 81หลายเดือนก่อน
How to DEBUG an assembly language program using GDB How to use the file .gdbInit How to write a command and save in .gdbInit How to use break points in gdb for debugging How to use the START command to begin running the debugger How to change the value of a register Table of Contents 00:00 Hey Team Intro 00:03 Quote by Edsger Dijkstra 00:24 Script to Assemble/Compile source code 00:55 4 ways to...
Assembly x86-64 Tutorial: Swapping Array Elements in Intel Syntax on Ubuntu Linux (Lesson 9)
มุมมอง 67หลายเดือนก่อน
Learn how to swap two elements in an array using x86-64 Assembly language with Intel syntax on Ubuntu Linux. This comprehensive tutorial (Lesson 9) covers: Calling external C functions (printf) Subroutine implementation and calling Stack management Accessing elements in a 64-bit array Using NASM assembler and GCC compiler how to find offset address in assembly language what is offset in assembl...
Rust HashMap Tutorial: Essential Techniques for Efficient Data Management
มุมมอง 672 หลายเดือนก่อน
Master Rust HashMaps with this comprehensive tutorial from #SoftwareNuggets. Ideal for beginners and intermediate Rust programmers looking to enhance their data management skills. Create and initialize HashMaps Manage capacity and length Perform insert, get, and remove operations Implement custom traits Use pattern matching with HashMaps Optimize HashMap performance Table of Contents 00:00 Hey ...
Node.js PostgreSQL Tutorial: Calling Functions & Database Operations
มุมมอง 1712 หลายเดือนก่อน
Node.js PostgreSQL Tutorial: Calling Functions & Database Operations Learn how to integrate Node.js with PostgreSQL using the pg package. Discover essential tips for establishing connections, executing SQL operations, and calling PostgreSQL functions from your Node.js applications. Perfect for programmers diving into database-driven web development!" Master essential Node.js database operations...
Master Number Base Addition: Decimal, Hexadecimal, Octal, Binary Using Carry Technique
มุมมอง 492 หลายเดือนก่อน
Learn the universal carry technique for adding numbers in multiple bases with this comprehensive tutorial by #SoftwareNuggets. Perfect for computer science students, programmers, and math enthusiasts Master addition in: Decimal (Base 10) Hexadecimal (Base 16) Octal (Base 8) Binary (Base 2) This step-by-step guide covers the fundamentals of number system math, making complex additions simple and...
HackerRank: Solution for Symmetric Pairs problem for SQL Server.
มุมมอง 2743 หลายเดือนก่อน
HackerRank Challenge HackerRank Medium Challenge HackerRank MS SQL Server Challenge HackerRank Challenge: Symmetric Pairs Solve a HackerRank Challenge using MS SQL code. solve X1 = Y2 and X2 = Y1 SQL joins Common Table Expressions (CTEs) #softwarenuggets , @SoftwareNuggets
Command Line Calculator - A Calculator that converts Infix to Postfix using C# .Net 8
มุมมอง 633 หลายเดือนก่อน
Command Line Calculator Infix to postfix calculator. Using a command window, DOS window or Linux Shell Window, provide users a command line calculator that performs (add, subtract, multiply, divide, modulos, incrementor, bit shifting) Using .Net 8 Core, a program that will allow a user to perform math expressions from the command line. The program take an infix notation expression, converts it ...
How-To Convert Infix to Postfix Notation. Learn with Three Examples
มุมมอง 1523 หลายเดือนก่อน
Step-by-step infix to postfix notation. HowTo convert infix notation to postfix notation. Use a basic flow chart type learning experience to convert an infix expression into the postfix notation. How to use a RPN calculator to perform a postfix expression. Reverse Polish Notation (RPN) Infix to postfix flow chart. Postfix calculation examples. infix to postfix converter. three examples to conve...
Create A Tkinter Listbox In Python: Learn To Build A Reusable Component
มุมมอง 5854 หลายเดือนก่อน
Build a List Control using tkinter tkinter listbox control with add, update,delete functionality tkinter listbox double click event how to use a selected_index on a listbox in tkinter form handling list operations in tkinter how to manager colors on a tkinter app class object that can be used to collect a collection of things, producing a list of strings. #softwarenuggets @SoftwareNuggets
HackerRank: Solution for Interviews, a problem for SQL Server.
มุมมอง 1084 หลายเดือนก่อน
HackerRank Challenge HackerRank Hard Challenge HackerRank MS SQL Server Challenge HackerRank Challenge: Interviews Solve a HackerRank Challenge using SQL code. This Interviews challenge has 5 tables that must be joined. SQL joins Common Table Expressions (CTEs) SQL metrics #softwarenuggets , @SoftwareNuggets
PostgreSQL: Write a Dynamic Function using ALTER TABLE with JSON parameter!
มุมมอง 1295 หลายเดือนก่อน
PostgreSQL: Write a Dynamic Function using ALTER TABLE with JSON parameter!
Learn Python,Tkinter and MongoDB to build a Movie Search App with Posters!
มุมมอง 2165 หลายเดือนก่อน
Learn Python,Tkinter and MongoDB to build a Movie Search App with Posters!
Calling Extern Printf() In Assembly Code: Code up a Small app to learn the steps!
มุมมอง 3245 หลายเดือนก่อน
Calling Extern Printf() In Assembly Code: Code up a Small app to learn the steps!
ASM Language: How to Sum the Digits from 8-bit Byte Array - Intel-Syntax Lesson 7. Assembly.
มุมมอง 755 หลายเดือนก่อน
ASM Language: How to Sum the Digits from 8-bit Byte Array - Intel-Syntax Lesson 7. Assembly.
HackerRank: How to Master SQL Joins and Grouping for Advanced Data Analysis. 🚀
มุมมอง 676 หลายเดือนก่อน
HackerRank: How to Master SQL Joins and Grouping for Advanced Data Analysis. 🚀
PostgreSQL: How to write a Function to validate an Email Address using Regex.
มุมมอง 1786 หลายเดือนก่อน
PostgreSQL: How to write a Function to validate an Email Address using Regex.
ASM Language: How to get input (sys_read) from the user in Assembly. Lesson 6. Intel-Syntax.
มุมมอง 1656 หลายเดือนก่อน
ASM Language: How to get input (sys_read) from the user in Assembly. Lesson 6. Intel-Syntax.
HackerRank: How to Loop over Binary Tree Nodes in SQL Server.
มุมมอง 977 หลายเดือนก่อน
HackerRank: How to Loop over Binary Tree Nodes in SQL Server.
ASM Language: Learn the JUMP assembly language instructions. Lesson 5. Intel-Syntax.
มุมมอง 3177 หลายเดือนก่อน
ASM Language: Learn the JUMP assembly language instructions. Lesson 5. Intel-Syntax.
PostgresSQL : How to Parse XML with Attributes. Insert into a Table.
มุมมอง 4057 หลายเดือนก่อน
PostgresSQL : How to Parse XML with Attributes. Insert into a Table.
XML Parsing in PostgreSQL: Utilizing XPath for Variable Extraction for Table Insertion.
มุมมอง 1K7 หลายเดือนก่อน
XML Parsing in PostgreSQL: Utilizing XPath for Variable Extraction for Table Insertion.
Lesson 4 - Calculate area of rectangle in Assembly Language. Area = Width * Length. Using IMUL
มุมมอง 3298 หลายเดือนก่อน
Lesson 4 - Calculate area of rectangle in Assembly Language. Area = Width * Length. Using IMUL
ASM Language: How to Call an Assembly Language Subroutine. Lesson 3. Intel-Syntax.
มุมมอง 1268 หลายเดือนก่อน
ASM Language: How to Call an Assembly Language Subroutine. Lesson 3. Intel-Syntax.
Geography Datatype: Calculate Distances with STDistance - Miles, KM, Meters
มุมมอง 818 หลายเดือนก่อน
Geography Datatype: Calculate Distances with STDistance - Miles, KM, Meters
C Programming: File Handling made easy with open(), close(), read(), write() and lseek().
มุมมอง 2038 หลายเดือนก่อน
C Programming: File Handling made easy with open(), close(), read(), write() and lseek().
How to Subtract Binary Numbers the easy way, step-by-step.
มุมมอง 1.5K8 หลายเดือนก่อน
How to Subtract Binary Numbers the easy way, step-by-step.
Lesson_2 : Hello World x64 in assembly language using myCompiler.io web site.
มุมมอง 1598 หลายเดือนก่อน
Lesson_2 : Hello World x64 in assembly language using myCompiler.io web site.
Thanks from Africa
Hey @LibyaMicro, much appreciated.
Excellent in Firebird databases there are also computed column that can fetch the value of a field from another table. such as bringing the department name from another table with the value of the field ID in the current table
I need to check out firebird. Thanks for the introduction!!
@@SoftwareNuggets However, this can only be done in PostgreSQL by calling a function. CREATE TABLE product ( product_id UUID price FLOAT available_location VARCHAR GENERATED ALWAYS AS fetch_product_location(product_id) )
@LibyaMicro that’s a great example. Thanks for the update.
Amazing lecture. Thanks Software Nuggets!
Much appreciated!
I love the calm, deliberate, clear way you speak and illustrate the answers. Can you come teach at my school?
Thanks for the message. Appreciate you taking the time to reach out. Are you a CS student?
@@SoftwareNuggets I'm a Biomedical Tech student. We are following an Electronic Engineering Tech program which include Digital Logic I. The notes our instructor has given us does not explain how to add/subtract Hex numbers, but it is on the assignment he handed out.
@AdamWatkins-m3c, congratulations on pursuing Biomedical Technology! It's great to see you taking initiative to find additional resources for understanding hexadecimal addition and subtraction. Your instructor will likely be impressed by your proactive approach to learning. If you have any specific questions about hex operations or need further clarification, feel free to ask. Good luck with your studies!
stop speaking like that
Wat do you mean?
For the prefix, you might want to consider using schemas. But glad you are thinking in a helpful fashion either way.
Great observation! Using schemas can indeed help manage permissions and improve data access. It's a smart way to enhance organization within our databases.
Learn all the flags! great video, great learning app!
Thanks
Amazing video!
Thanks @JulianRiverplate14, appreciate the feedback.
good video!
thanks. did you get this app working on your box?
At the best; Person model should implement Inotifypropertychanged, and all public properties inside this model , should call PropertyChange.
I know how to use computed columns now, thank you.
Question: why would you need a computed column?
@@SoftwareNuggetsYou would need a computed column to automatically calculate values from other columns with a formula so you wouldn’t have to do it by hand.
I understand this, I liked your scenario, it helped understand this much better.
Question: How do you convert a RowVersion value to a Big Integer?
@@SoftwareNuggets You would use cast function
I understand that these are both the same now, thank you.
This was pretty informative thank you for this
Question: Does the Timestamp datatype have anything to do with the Date/Time?
@@SoftwareNuggets No, it has absolutely nothing to do with Date/Time
Thank you for this, I understand TimeStamp and now I also know cast statement
I understand the difference between the two, thank you.
Question: why would these data types be used?
Thank you, I understand this.
Thank you for this, I know how to use BIT data type now.
Question: So the Bit datatype has two states: what are they?
@@SoftwareNuggets 0; false and 1; true
Very informational, I can differentiate all of the date and time data types.
Thank you, I understand SMALLINT data type
Question: What is the largest number you can put into a SmallInt datatype?
@@SoftwareNuggets 32,767, the range is from -32,768 to 32767
I know how to efficiently use data type TINYINT now, thank you.
can you use identity(240,10) on a TINYINT datatype? Do you get an error if the identity value > max number allowed? what is the max number I can put into a TINYINT ?
@@SoftwareNuggets Yes you do receive an error if the identity value > max number, and you can use identity (240,10) for only 2 values before you receive an error so it isn’t ideal. The max number that can be used in TinyInt is 255
Thank you for teaching me how to reseed an identity column
Thank you for showing how to use IDENTITY on a int data type
Is this a legit command: counting backwards? create table t33 ( x int identity(10000,-10) not null, y varchar(10) ); insert into t33 values('aaa'); select * from t33;
@@SoftwareNuggets yes this is a legit command
I know how to use data type INT, thank you for this video.
I understand how much space a NVARCHAR consumes
How much space and why?
@@SoftwareNuggets 2 bytes per character because it stores data in Unicode
@blixstaa you got it
thank you, i can see the comparison between varchar and nvarchar now
without executing this code: declare @c as nvarchar(10); set @c = 'blixstaa' select DATALENGTH(@c) what will the DATALENGTH(@c) equal? declare @c as nchar(10); set @c = 'blixstaa' select DATALENGTH(@c) what will the DATALENGTH(@c) equal?
@@SoftwareNuggets for nvarchar, it will equal 16 and for nchar it will equal 20
I understand VARCHAR vs CHAR now and how to use ASCII
Question: what is the output of the following: (execute all four rows in one execution) declare @c as char(3); select @c ='A'; select len(@c) select DATALENGTH(@c) what will len(@c) print out? what will DATALENGTH(@c) print out?
@@SoftwareNuggets len(@c) will print 1 and datalength(@c) will print 3
@@blixstaa why does DATALENGTH(@c) print 3?
@@SoftwareNuggets because @c is declared as char(3)
Thank you for describing CHAR
Question: can you put a unicode character like '₡' into a char(2) column?
Question: what does the ascii function return?
@@SoftwareNuggets No you cannot, you must use nchar
@@SoftwareNuggets the ascii value of the first character in a string
@@blixstaa an integer value between 0-255
Could you plz put the source program link? 😊
Hey @sa3a388, you can find the source to this video on my GitHub Account: github.com/softwareNuggets/VBA_for_Excel_resources/blob/main/ElapsedTime.bas
One of the best R.E resource,Short and concise
One of the best, much appreciated.
big like to you bro
much appreciated!
Amazing
Thanks. Did you watch the subtract hex video?
Thank you so much, this helped a lot ≧∇≦
Glad to hear this video was useful. Wish you much success.
Appreciate
hey @mahdiali4299 - thanks. I have another video about geography: th-cam.com/video/W8siqbvhEj4/w-d-xo.html - maybe helpful. --scott
And why doesn't it support BSON out of the box?
Newtonsoft json must be installed. That’s what I meant. Sorry for the confusion.
I really liked the way you explained. Thank you so much : )
Much appreciated. Thanks for taking the time to leave a comment.
After some wondering I used ``mov rdi, format_1`` instead ``lea rdi, [format_1]`` and it work. Is there any reason to use ``lea`` or is for demonstration purpose?
hey @sulw4236, I agree with you, 'mov' is straightforward, and easier to use. I could have used either syntax. I'm a c programmer, so thinking in pointers: "The mov instruction duplicates the value by copying it into the target register, whereas the lea instruction uses the original address of the value, placing that address into the target register." //mov int rdi; int format_1 = 34; rdi = format_1; //lea int format_1 = 34; int *rdi; rdi = &format_1; hope this helps!
I got rbx= 188978561037 after executing instruction ``mov rbx, [num1]`` in my laptop, I resolve this increasing the allocation size of num1 from dd (which is 32 bits) to dq (which is 64 bits). ``num1 dd 13`` to ``num1 dq 13`` Thank Software Nuggets for the video
Thank you so much for your video and the very clear explanation. I have a litter question... How I can send the xlm_output or the result to a file?
CREATE TABLE xml_table ( xml_data XML ); INSERT INTO xml_table (xml_data) VALUES ( '<toll_data_list> <toll_data> <toll_id>1</toll_id> <vehicle_license_plate state_plate="FL" expiration_date="2024-06">ABC123</vehicle_license_plate> <toll_booth_id>101</toll_booth_id> <toll_amount currency_type="USD" payment_rendered="DEVICE" device_serial="123-4567-89034">5.75</toll_amount> </toll_data> <!-- Add other <toll_data> entries here --> <toll_data> <toll_id>10</toll_id> <vehicle_license_plate state_plate="FL" expiration_date="2024-12">YZA567</vehicle_license_plate> <toll_booth_id>110</toll_booth_id> <toll_amount currency_type="USD" payment_rendered="Cash">5.00</toll_amount> </toll_data> </toll_data_list>' ); from command line psql -U postgres -d postgres -c "COPY (SELECT xml_data FROM xml_table) TO STDOUT WITH (FORMAT text)" > output.xml
@@SoftwareNuggets Thank you so much for your answer!!
thank you so much now i understand
Thank you. I have one other video that might be useful: ADD two (Decimal, Hexadecimal, Octal, Binary) using the CARRY Technique. th-cam.com/video/Vd49yfa6DuE/w-d-xo.html
Question, how good is Interval's performance?
In PostgreSQL, working with INTERVAL is usually fast, but how well it performs can depend on how you use it in your queries and data setup.
I started learning Rust recently, and this video helps me a lot. In this example, not only I learned HashMap but Match and Custom Format Error in one Video. Thank you @SoftwareNuggets
Hey Luan, Thank you for letting me know the video was useful to you! I'm always excited to hear when content resonates with viewers. Do you have any requests for other videos?
Thanks for asking. I am interested Traits and Closures in Rust.
Wow you promised and you did it. You have made my day! This is the most helpful nodejs plpgsql combo i have ever seen on the internet. This is truly amazing. Thank you so so much Software Nuggets.
Hey @LekkyDev, glad to hear this video was useful. Thanks for letting me be a small part of your programming journey.
Thank you so much! This is easiert tutorial ever and how every tutorial should be🫡
Very happy to read your comment. Thanks!
@@SoftwareNuggetswelcome! I was wondering if you could help me out with a college project of mine, i m in my last semester and really stuck in an issue. Im willing to pay if you finish the job! 😄
#Sanketjoice. Thanks for reaching out. I am willing to help you with your college project. I am not available for work for hire. If you'd like for me to help, please explain the problem you need help solving. send to my email address: softwareNugget65@gmail.com
Can you use postgresql functions with NodeJs? Why are there no tutorials about how to do that? Could you pls make a tutorial to demonstrate how to do that?
Hey @LekkyDev, I will have a video out tonight, however, I could just upload the source to this problem to my github account earlier if you'd like. Please let me know. If no response, I'll just publish video ASAP.
@@SoftwareNuggets That would be great if you could upload the source but videos are always better because you get to see the build up as well. I really struggle to find any tutorial about plpgsql with nodejs. Thanks for reaching back and looking forward to the source and the video.
@LekkyDev, I will upload the video at 7pm tonight. Look forward to hearing comments from you.
@@SoftwareNuggets Wow thanks in advance. Its past 9pm already central euro time. Still waiting.
I reschedule for 6pm.
🙏🙏🙏
Thanks
IF Identity column has a relation with child table we use ScopeIdentity() to insert into child table, For uniqueidentifier do we have same Functionality like identity
NO. uniqueIdentifier does not have such a function. However, CREATE TABLE UParent ( ParentID UNIQUEIDENTIFIER PRIMARY KEY, ParentName VARCHAR(100) ); -- Create the child table CREATE TABLE UChild ( ChildID UNIQUEIDENTIFIER PRIMARY KEY, ChildName VARCHAR(100), ParentID UNIQUEIDENTIFIER, FOREIGN KEY (ParentID) REFERENCES UParent(ParentID) ); DECLARE @ParentID UNIQUEIDENTIFIER = NEWID(); -- Insert into UParent INSERT INTO UParent (ParentID, ParentName) VALUES (@ParentID, 'Parent Name'); -- Insert multiple children for this parent INSERT INTO UChild (ChildID, ChildName, ParentID) VALUES (NEWID(), 'Child 1', @ParentID), (NEWID(), 'Child 2', @ParentID), (NEWID(), 'Child 3', @ParentID); -- Optionally, you can select the inserted data to verify SELECT * FROM UParent WHERE ParentID = @ParentID; SELECT * FROM UChild WHERE ParentID = @ParentID;
Love your videos man!!
Thanks Mr Harrison, appreciate the "love"
The best tutorial about this I have seen, thanks for that
Much appreciated
<3 thx
Appreciate the message