- 911
- 7 986 622
0612 TV w/ NERDfirst
Приєднався 14 сер 2006
0612 TV, a sub-project of NERDfirst.net, is an educational UA-cam channel. Started in 2008, we have now covered a wide range of topics, from areas such as Programming, Algorithms and Computing Theories, Computer Graphics, Photography, and Specialized Guides for using software such as FFMPEG, Deshaker, GIMP and more!
Enjoy your stay, and don't hesitate to drop me a comment or a personal message to my inbox =) If you like my work, don't forget to subscribe!
Like what you see? Buy me a coffee → www.nerdfirst.net/donate/
0612 TV Official Writeup: nerdfirst.net/0612tv
More about me: about.me/lcc0612
Official Twitter: 0612tv
Disclaimer: Please note that any information is provided on this channel in good faith, but I cannot guarantee 100% accuracy / correctness on all content. Contributors to this channel are not to be held responsible for any possible outcomes from your use of the information.
Enjoy your stay, and don't hesitate to drop me a comment or a personal message to my inbox =) If you like my work, don't forget to subscribe!
Like what you see? Buy me a coffee → www.nerdfirst.net/donate/
0612 TV Official Writeup: nerdfirst.net/0612tv
More about me: about.me/lcc0612
Official Twitter: 0612tv
Disclaimer: Please note that any information is provided on this channel in good faith, but I cannot guarantee 100% accuracy / correctness on all content. Contributors to this channel are not to be held responsible for any possible outcomes from your use of the information.
Відео
Beware of this basic Python pitfall!
Переглядів 52011 місяців тому
Sometimes, a bit of technical knowledge is required when using Python's many convenience features. Here's a little something that could go wrong if you inadvertently forget that references exist in Python! Want to contribute to the channel? Consider using the "Super Thanks" feature above, or visit my website at nerdfirst.net/donate to find alternative ways to donate. Thank you! Disclaimer: Plea...
A simple algorithm to speed up repeated summations!
Переглядів 1 тис.11 місяців тому
Need to repeatedly sum up values from sublists which are extracted from a bigger list? You could simply loop through the values each time, but you'll find that doing so gets pretty slow. Today, we look at a simple pre-processing step that saves you a ton of trouble in the long run! Plus, we take a brief look at how this also works in bigger dimensions. Want to see the code used in the video? Ch...
Some Travel Adapters are Dangerous!
Переглядів 1,5 тис.11 місяців тому
Not all travel adapters are built the same. Some pose a hidden danger that's worth learning more about so you don't put yourself at risk! Want to contribute to the channel? Consider using the "Super Thanks" feature above, or visit my website at nerdfirst.net/donate to find alternative ways to donate. Thank you! Disclaimer: Please note that any information is provided on this channel in good fai...
Here's a smart one liner for you!
Переглядів 618Рік тому
This line of code uses a pretty ingenious way to manipulate the range of a number. In this short, we take a quick look to understand how it works! While this is not really good programming practice because it puts too many operations on one line (as opposed to using if-statements), it takes quite a smart approach at solving this problem! Want to contribute to the channel? Consider using the "Su...
All Quicksort does is call this function - Partition!
Переглядів 717Рік тому
Quicksort is an algorithm that has a ton of variation to it - Today, we break down this algorithm into its constituent parts, Partitioning and recursion, and try to understand what it is about Quicksort that stays the same between implementations, and what changes. Timestamps For Your Convenience 0:00 Introduction 0:26 Basics of Quicksort 1:39 Introduction to Partioning 2:20 Relationship betwee...
Can you believe I'm still around?
Переглядів 994Рік тому
Yes, I'm back, at least for now. "Real" video dropping tomorrow.
I made a Nerdle "Solver" with as many Software Engineering concepts as I could!
Переглядів 1,4 тис.Рік тому
Nerdle is a game that really piqued my programmer interest when I first saw it, because it felt like such a great problem to attempt to programmatically solve. I decided to apply a bunch of software engineering techniques along the way (mostly automated testing), and here's the result! Find Nerdle here: nerdlegame.com/ Find the github repository for this project here: github.com/lcc0612/ndlebud...
Pull Up/Down Resistors
Переглядів 7 тис.Рік тому
In hardware projects, you often see resistors used alongside components like pushbuttons and transistors - Why? In this video, we explore this and also consider some possibilities this opens up! 0:00 Introduction 0:28 Floating Pins 1:36 Pull-Down Resistors 3:14 Pull-Up Resistors 4:47 Strong vs Weak Pull 5:41 Conclusion Some more sources you may be interested in: - learn.sparkfun.com/tutorials/p...
Deep Dive: Why 360 cameras are little miracles on selfie sticks
Переглядів 9152 роки тому
360 cameras, better known as spherical cameras, involve a ton of processing and math before we can get to the usable and even stylized footage we know and love. In this video, we delve deep into what these considerations are, consider the potential roadblocks, and along the way, get a deeper insight into just what 360 cameras need to contend with! = Contents Page = 00:00 Introduction 01:37 Why?...
Invisible Selfie Sticks, Revisited
Переглядів 1,6 тис.2 роки тому
Last time I talked about the invisible selfie stick effect on a 360 camera, I missed the mark a little, so let's try again - It's two years late, but better late than never! How exactly does a 360 camera "remove" the selfie stick that holds it up? I pick apart two common theories and try to find the perfect middle ground between them that, hopefully explains this effect thoroughly. Do keep your...
Emoji is fun!
Переглядів 1,2 тис.2 роки тому
The world of Emoji is so interesting, thanks to a set of cool mechanics presented by Unicode, in which emoji are defined. You can combine emoji to make new ones, or use certain special codes to change how an emoji looks. Today, let's delve into exactly what this looks like under the hood, and try your own hands at doing the same using a special Emoji Combiner web application written specificall...
CPU Pipelining - The cool way your CPU avoids idle time!
Переглядів 10 тис.2 роки тому
The CPU is complex, so as you can imagine, optimizations exist to ensure that it runs as efficiently as possible without idling. In today's episode, we look at the pipeline - An ingenious optimization technique, but also one that comes with a set of caveats and gotchas! = CONTENTS PAGE = 00:00 Opening 01:07 CPU Basics - Instructions 01:22 Stages of an Instruction 03:32 Idle Time 04:16 Introduct...
Building a Cheat Color Sensor!
Переглядів 9912 роки тому
What happens if you don't have a color sensor, but you DO have a light sensor and an RGB LED? Today's project is more of a fun bodge-together than anything, but sometimes, that's what you need to let the creative juices flow! = Free / Public Domain Resources Used = Music: freepd.com/Page2/music/Outro.mp3 freepd.com/Page2/music/Rap Deep Groove.mp3 freepd.com/Page2/music/Urban Funk B.mp3 freepd.c...
Android screen mirroring, free and open source!
Переглядів 4,3 тис.2 роки тому
Want a way to mirror and remotely control your Android display from your Windows desktop, but frustrated by how many of the options out there are either premium or require much setup to work well? Today, I present a completely free and open source option (Licensed Apache 2.0), that allows you to do all these things using software on your PC, and just the developer options on your Android device...
How to subtract without negative signs - The Method of Complements
Переглядів 8272 роки тому
How do computers subtract? Since computers store numbers as bits, we have to use a bit of clever math to ensure that operations involving negation work as expected. Along the way, we'll also look at negative number representation, before generalizing this idea beyond computer science! Check out the Method of Complements calculator on my website → resources.nerdfirst.net/complements Like my work...
This guy is going places WOW if he keeps up his videos like this I'mma HAVE to donate
Hello and thank you very much for your comment! Glad you like my videos! I've been too busy with work to make videos recently, but in the meantime, feel free to check out the channel to see if there's anything else you like!
How do I access the £ key on my hp laptop
Hello and thank you for your comment! This depends on both the physical layout of your keyboard and they keyboard language you have set on your computer. There are many possible answers, here are some of them: www.quora.com/How-do-I-get-a-pound-sign-on-a-keyboard
Damn, your videos are so nice!!!
Thank you very much! I remember your comment on another one of my videos as well, glad to know you like my work =)
Thank you for share!
You're welcome! Glad you liked the video :)
very well explained. thank you!
You're welcome! Very happy to be of help =)
8 years later i still find this helpfull , am about to start my cs
That's great to hear! All the best for your CS journey =)
This is great! I love how the information is displayed with the colors. I started color coding my notes and it really helps break apart the information and categorize it, much more than with explanations for me!
Hello and thank you very much for your comment! Yes, colors are a really powerful way to create visual separation and groupings between things, and I find myself using it a lot to subtly convey certain ideas. Glad it worked well for you!
Good stuff
Thank you! Glad you liked the video :)
Does it supports multipage app ?
Hello and thank you for your comment! Yes it does. You can create multiple HTML pages and navigate between them as per normal. Just ensure that each page includes the eel.js script. There was a bug back then that may cause the backend to shut down if you navigate between pages too quickly, but in my recent use this didn't crop up anymore so I'm inclined to say it's probably been fixed.
One of the finest explanation of SSH...❤️
Hello and thank you so much for your comment! I'm glad you think so, I poured my heart into this one so this was good to hear!
99 dollars where?
In Singapore at Toys R Us, in 2018!
@@NERDfirst In US dollars? That's crazy.
Singapore dollars. Converts to about US$73 in today's rates. (I should have included the rates back then in the video)
@@NERDfirst OK. Thanks. Why can't they make the writing brighter on these LED gadgets?
From a technical perspective, all LCD does is to selectively block a rear layer of material, which can be a luminous color like green, to reflect as much light from the environment back to your eyes. Traditional displays even used mirrors to achieve this. But ultimately, without an active backlight, your writing can only look as bright as the light reflected from the environment. It's a limitation of the technology, especially since the low-power nature of such boards is a major selling point.
Noice man I could understand at least the most of it ....Please keep it up for us beginners 🙏
Hello and thank you very much for your comment! Glad you like my work! If there's anything you haven't completely understood, feel free to let me know and I'll try to explain it further for you.
HELPFUL
Hello and thank you very much for your comment! Glad you liked the video :)
I can only wish for more, Like how about talking about upsampling audio,how about talking about dekwantize audio along with those great graphical illustration as well?😁
Hello and thank you very much for your comment! Honestly this stuff isn't my strong suit since my background is in Computer Science, but I'll see what I can do! Many of these topics are really interesting!
Insightful video ❤ tganks for your efforts !
You're welcome! Very happy to be of help :)
Sir, please make more hardware slash robotics videos
Hello and thank you for your comment! Yeah, I'd love to, this is a topic I enjoy. Got any specific topics you'd like to see?
Why dont computers store the signal as a composition of curves like it is in vector graphics? Isnt that a way that we could store the exact analog signal?
Hello and thank you for your comment! I think for storage and synthesis, this is certainly possible. However, I think this might be difficult when it comes to capture - Ultimately, all you could do is to take measurements of a signal at a fixed interval, and at that point you already run into aliasing concerns.
Excellent video, thank you!
You're welcome! Very happy to be of help =)
i found this 5 years too late 😂
Heh, at least you found it, so the next time you need it, you know what to do!
thank you sir
You're welcome! Happy to be of help :)
Thank you so much!!! ❤
You're welcome! Glad to be of help :)
You forgot to add fps here
Hello and thank you for your comment! In my initial draft for this video, I did have framerate operations, but I scrapped it after it turned out to be less trivial than what it seems on the surface - Changing the framerate inherently affects speed, so if you just reduced the framerate for example, FFMPEG compensates by dropping frames, which isn't all that intuitive to me. I ended up covering speed and framerate changes with the SetPTS filter a long time later, in this video: ua-cam.com/video/ckCuy7dmyPI/v-deo.html
Nerd, I hope you know, means genius to many of us that appreciate your channel. I'm using a Video converter software (DVDvideoSoft) that has used Handbrake to give us editing and ffmpeg to convert files to my preferred format, .mp4. I have a new windows 11 computer running an Intel 7i. the ffmpeg when converting a list of files, usually 4-5 at a time, consumes 100% of my installed cpu and 26% of my memory. These are lower quality mp4 files that are being converted to 1280x720. I've never run into this before on my old Windows 10 computer. Do I just do 1 at a time or does a command line exist to put off the conversion by ffmpeg until a later time? Thanks, again, I'll be watching your other videos. I see this one is from 2015, I hope you're still active.
Hello and thank you very much for your comment! Glad you like my work =) If I'm understanding you correctly, what you'd like is to perform video conversion in the background in a way that won't tie up your CPU completely, so that you can continue to use your computer while the conversion is in progress? First thing to bear in mind is that FFMPEG will try to use up as much resources as it needs to, which means that switching to FFMPEG and processing one file at a time might still not be enough for your computer to be freed up enough to do other tasks while the conversion is running. This really depends on where the bottleneck in the process is (eg. If you're using a slower hard disk, the CPU may be largely idle while waiting for file reads and writes). To run a number of FFMPEG conversions sequentially in a batch, you can use the forfiles command. I've made a video on this before and is what I use if I want to convert multiple videos using FFMPEG: ua-cam.com/video/1mTFYyfYBS4/v-deo.html I am not familiar with any tool that can defer processing until a later time. Technically the command line has commands like sleep that you can use, or you can use the Windows task scheduler, but both of these don't really feel like great solutions in this context. I think a good starting solution to test out will be to use forfiles and process your videos sequentially, and see if it helps. If you really need to, you can also consider limiting FFMPEG to less threads, so other cores on your CPU remain free for other tasks. There's discussion on how to do this here: superuser.com/questions/792525/how-to-change-ffmpeg-threads-settings
@@NERDfirst I'm so impressed with your lengthy and thoughtful response to my question. I appreciate your time. I'll look into your ideas as I have a backlog of about 20 videos I need to convert. I'll test a few. I use task scheduler and as I use a program interface and not the direct cmd line to convert my files, I'll try that! My hard drive is a 2tb SSD so drive speed should not be a problem. Again, I 'll watch your suggested youtubes and thanks again for the help.
No problem at all! Your use case is interesting and it gave me a chance to learn something new as well. All the best, hope you can find a solution that works well!
thank you so much I've looking in how to do it for so much time!!!
You're welcome! Very happy to be of help :)
is there a way to use space characters in the new name with this command? i tried surrounding the name in more quotes, as well as putting a backslash (escape character) before the space, but it always gave me an "incorrect syntax" error, so i just substituted them for underscores
Hello and thank you for your comment! Typically on Windows, quotation marks worked for me, eg. ffmpeg -i input.mp4 "output video.mp4"
@@NERDfirst i meant with the forfiles command, eg. forfiles /c "cmd /c ren @file "new name.@ext"" (this returns an error)
I apologize, when I first saw your comment I thought this was on my other video about the FFMPEG command line application. I did a bit of digging and I was surprised to find that you might have run into a limitation of forfiles, and so what you want to do might actually be impossible. The reason is that forfiles always introduces quotation marks around the parameters (you can try a simple `forfiles /c "cmd /c echo @fname"` and you'll see that in action). If you introduce your own quotation marks, they clash since they're interpreted as a doubling up of quotation marks.
@@NERDfirst right, i figured. oh well, thanks for the help! :3
Nice work and explanation. Would be cool to see a CMOS or JFET version if you do a revisit since they make better switches. Just not as beginner friendly.
Hello and thank you for your comment! Yes, I wasn't confident enough for that which is why I didn't broach those topics. Maybe one day!
So which ones are best for astrophotography
Hello and thank you for your comment! There's no such thing as "best" really. It all depends on what tradeoffs you're willing to put up with. For astrophotography, if you're stacking exposures and want a brighter overall image at the expense of more noise, "addition" might be a good choice. If you want to average out the effects of noise across multiple shots, you can also consider the Normal blending mode, playing with the opacity to get the effect you want.
@@NERDfirst Yes I am stacking between three and six images with each one being red, green, blue, if I have more than three then I have red, green, blue yellow. So all my images are a single color and then I just blend them together. So you feel that addition would be a good fit for that method?
Yes that sounds good. If each of your images are already RGB (in that, for example, the red image has the red channel populated while the other two are completely black), then using addition will even restore full color information. For combining your RGBY images, you'll have to play around with the opacities of the channels to make it look right since R+G=Y so there might be some overlap of color information.
@@NERDfirst perfect thank you. This is all new to me so i am trying to figure it all out haha
You're welcome! I'm glad to be of help. The good news is, there really aren't any right or wrong answers. Once you've figured out the basics, the rest is about experimentation and making your art look the way you want it to! All the best with your astrophotography work :)
Amazing ❤️
Hello and thank you very much for your comment! Glad you liked the video =)
two related questions: 1. can you asterisk an address literal to get the value stored there? 2. does the code treat addresses differently than a string that looks like an address?
1. Do you mean to look at the address of the pointer variable (not its target, but its own address)? If yes, then you can. I briefly discuss this at 6:55. 2. Yes, they're not the same, but only because you said "string". In C, a string is a sequence of characters, where an address looks more like an int or a long. What this means is, you could technically take an int that represents a valid memory address, cast it to a pointer type, and then use it to access a memory location. This is not common practice and comes with many caveats and risks, but it _is_ something that is technically possible.
question: doesn't the variable name also need to be stored in a way that links it with that address? I'm guessing that's done by the compiler somehow, but how does that work?
Hello and thank you for your comment! Variable names are really just an abstraction for memory addresses, making it easier for us to understand the code. By the time the program is compiled into machine code, the variable names are substituted with memory addresses, and they disappear. The low-level instructions generated for the CPU only manipulate memory addresses, registers, and other low-level constructs.
If the wire acts like an antenna…why do random signals flowing between ground and the pin behave differently from the random signals from before (when there was no pull down resistor)? Your animation shows there’s noise on the wire either way. So how does that solve the problem? And why does the closed switch ‘overwhelm’ the path to ground? I believe you. I’m sure you’re right. I just would love if one of the 40 UA-cam videos on this topic would take a little more time and explain the why.
Hello and thank you for your comment! These are fair points, I'll do what I can to clarify! I'm not sure that my animation shows that there's noise on the wire - It shows an electrical connection between the pin and ground. The kind of random noise we experience when the pin is floating comes from sources like electromagnetic induction. These are typically very low energy signals and therefore, the current generated is miniscule. When a voltage source is connected, the current generated is significantly higher. It "overwhelms" the noise by being the higher-energy source, exerting a greater "force" on the electrons in the conductor. When we pull down to ground, all the stray currents have a low resistance path to ground, so they "drain" that way instead of registering on the microcontroller's pin. We can use the same line of reasoning to understand why the closed switch overrides the pull-down resistor. There are two paths for the current to flow - Through the resistor to ground, or through the microcontroller pin, which has next to no resistance. Hence, most of the current flows to the pin, allowing it to register the voltage. That's what I mean by "overwhelming" the path to ground. Let me know if this makes things clearer or if you need further clarification!
amazing explanation, thank you!
You're welcome! Very happy to be of help =)
Thank you for the video. I`m building a arduino grbl cnc. I got alot of problems with limit switches, how "big" resistor should i use? Have tryed 10k with no luck. Thank you.
Hello and thank you for your comment! I'm afraid I don't know enough about your use case to properly advise. The best I can do is to refer you to the Limit Switch page of the GRBL documentation here, I see that resistor values are given: github.com/gnea/grbl/wiki/Wiring-Limit-Switches
Thank you, that helped alot 👍And Thank you for the great video.
Some in UA-cam are specialists in copy and paste of creation of others
Hello and thank you for your comment! I hope this is not in reference to me, as this was an original work, though I would admit, not particularly groundbreaking.
Anti ghosting? Yeah yeah, idgaf. Hmmm, let's check wtf does it mean regardless. Ohhh turns out I just might give two or three fucks 😅 Thanks buddy! 👍
You're welcome! Yeah, it's not a feature everyone needs, but if you do, it's definitely great to pay attention to.
Thank you so much !!!🙌
You're welcome! Glad to be of help :)
Really Amazing
Hello and thank you very much for your comment! Glad you liked the video =)
I want to end green screen video at the end of the video, how can i do that?
Hello and thank you for your comment! Do you mean that you want to stop the greenscreen effect before the video ends? If so, you probably can use timeline editing features (discussion starting at 9:06) - The "enable" option discussed might be useful.
thank you so much 🙏
You're welcome! Very happy to be of help :)
You’ve got star qualities. Great presentation. Not done watching just a note!
Hello and thank you very much for your comment! Glad you're liking my work so far :)
GOP1:12 is it IPPPPPPPPPPPI OR IPBPBPBPBPBPI
Hello and thank you for your comment! We typically only include one i-frame in each group of pictures (so don't end on an "I"). Other than that, both are valid ways to do GOP.
Brilliant! Thanks for your hard work.
You're welcome! Very happy to be of help =)
i've been browsing the web for 2 nights and your explanation is the best so far, and btw solve my problem, tnx a lot😁👍
You're welcome! Very happy to be of help =)
WE WANT MORE!!!
Christ 10 years ago... wow
Hello and thank you very much for your comment! Yeah this is from a loooong time ago, but at least I'm still here, lurking in the comments. Any specific topics you're interested in? I'll see what I can do.
Broo thank you very much, I was struggling lately to understand what an f JSON is and even proffesors in university did not explain it this well. Thank you very much! I wish you all the best
You're welcome! Very happy to be of help =)
Your videos on ffmpeg are awesome. Simple, clear, effective, visual examples. Awesome.
Hello and thank you very much for your comment! Thanks for hanging around and checking out my videos, glad they were useful for you =)
Thanks so much mate
You're welcome! Glad to be of help :)
This is a great introduction to ffmpeg concepts/basics 👍🏻
Hello and thank you very much for your comment! Glad you liked my work :)
@@NERDfirst I've then watched your other video about advanced filters, great too ! I knew the basics already, but it's always interesting to check how other people explain things, there's always something to learn you either didn't know or didn't use properly. I had no idea about the difference using '-ss' before '-i' vs after ! :) Thanks, your videos are very understandable and I like the effort with the animation/graphics you put in them ! Cheers
Thank you again! Yes, that clarity is exactly what I'm aiming for so I'm glad I was able to achieve it.
so helpfull , thank you so much dude
You're welcome! Glad to be of help :)
Goated
Thank you! Glad you liked the video :)