 What's going on guys? RudeLinol here bringing you some more Python programming. Yeah, that's what it is. Here it is. Holy crap. Oh yeah, what you're watching here, I realized just today that like, oh my goodness, I'm running out of content for you guys. I really want to have some more footage so I can make code commentaries because I know I've been slacking off on doing these and I really, really want to. And now that I have this, alright, I'll let you guys in on a little secret. It is the holiday season, you know, and Christmas time is coming and I actually got my Christmas present a little bit early. It was Black Friday just after Thanksgiving and I spent some time together with my family and it was really great. Thanksgiving was awesome. I hope you guys had a good time. But Black Friday, the day after, like all the stores are having a sale and everyone's going crazy, like getting up at two o'clock in the morning, going to the store, buying some cool. And you know, that's what I did. I didn't wake up at two o'clock in the morning or anything, but I did go to the store and I found myself a new laptop and it is absolutely awesome. This thing has eight gigabytes of RAM, 750 hard drive. It's got a 15.6 inch screen. Yeah, that's right. It was running Windows 7 by default, but like I told you guys in the other video, I upgraded to Ubuntu 11.10. I've been trying that out and that's what you're seeing in this video. You get to see a little bit more of 11.10 Unity and all that sexy goodness because Unity really is awesome. I absolutely love it. But yeah, this new machine is awesome. It has four USB ports. It's got a Blu-ray like disk and reader and everything. It has Beats Audio. For anyone that actually knows like the computer names and stuff, I have an HP Pavilion DV6. It's got an Intel Core processor i7 it looks like. It is slick. I really, really love this new machine and I'm going to be bringing a lot more code you guys with it because everything is so much faster. Rendering videos doesn't take as long as it did with the old machine. I can do like blender programming. I can do 3D modeling and really, really fantastic stuff. I'm totally excited about it. What you're watching in this video was really just me playing with Python. I recorded this video tonight. I just actually finished getting it all done. It was an hour long video and I split it in half because I want some extra content for next time. So you're going to see a half an hour of this content sped up three times fast. So yeah, that's just like a regular code commentary like I usually do. But the first beginning of this video was some work with Python because I was experimenting because a project that I was working on today, like I was talking to you guys earlier about some net shares and some work that I was doing and I wrote a program called Bashalisk that loops through net shares and all that. And what I want to do is I want to change that into Python code because Python has a thread module and it's a lot awesomer. I'm sorry, awesomer is a really terrible word, but it's really great and that way the thread module lets me use it like threading and I can actually run multiple things at one time. It's no longer procedural code, it is sort of procedural code but I can do one thing and then another thing and then all these other things at once. And yeah, that's what I was playing with today. But the thing is I was trying to get it started so it would run the remote program because it's a visual basic script that does that. You'll actually see me open it up in this code commentary. I open up that visual basic script. But the thing is I'm trying to run the remote program. I'm trying to run some NERSOLF tools to receive information on the remote computer. I'm sorry, I'm losing my train of thought here. But yeah, it'll run the program and it's running it on the remote machine. Except what I needed to do is I need the program to be able to wait for the program to finish being executed on that remote machine. Because if it continues with the code and the rest of the code is like delete the program, if the program is still running, it obviously can't delete the program so it has to wait. And the thing is when you initialize a program, right when you start up a program, you can return it from the command line. You can return a process ID so you get the identification number of the process. And when the program exits, you get an exit status. And the exit status is whether the program ran successfully, there was no problems or whatever. If you get an error, it'll give you something that isn't a zero because zero means successful as an exit status. Run it out of error, holy crap, but yeah, that's really all it does. But I want to make sure that this code waits until the program has finished executing before I continue with the rest of the program. With the rest of the code. Because I don't want to remove the program while I'm still using it. Because I don't throw up an error, Python will have a hissy fit and I'll just have a tamper tangent. I don't know. But I just want to make sure this code works. But that's the thing, I needed to use a module that would run it. So I tried like operating system, a start file, that didn't work. I tried OS dot system. That's okay, but it brings up the command line and I don't want that. Unless I'm using it from within the command line, then I don't think it has a problem. And I might be doing that except it gave a little, it didn't have a, it wasn't okay with that either. And then the next thing I tried, I think, like the OS dot poppin or popin P open. I think it's like process open P O P N, you know, I was playing with it a whole lot. And then there's an actual module for that. There's like import popin to or process open P open. I should be, I should be going P open. I'm sorry, P open to you can try that. And I was looking at sub process because I heard about sub process when I had finished working today on that Python code. So I was just research. I was researching it and trying to play with it and see what I could do. But it is like the code that I'm writing in Python is meant for Windows machine. And obviously it's it's meant for something that is that that has access to a network. And right here in my little home in my little home office. I don't have a whole like infrastructure. I don't have a whole network to be looking at. So it was a little difficult to play with. But there is a little bit more debugging that I need to do. And yeah, that's about all of it. That's about all that I was talking about in this one. And then near the end of the video, you're going to see me looking at some HTML files because the net shares that I had written, the little Python script that I had written, not what I had been doing today. I know this is going to get a little bit confusing. But it isn't the Python code that I had written today, but I had written earlier. You saw me writing in the previous code commentary. Yeah, that I had written because it's trying to loop through an HTML table. So trying to loop through multiple HTML tables to get information that we received from these net shares from our NERSOS tool, Net Resource View and all that. And I was writing up the HTML documentation for an LShell.com in this video. So that's what you're seeing. I'm not doing too much coding in this video. It was really just researching and writing up documentation on the previous Python code. So yeah. You do see me typing at least. The next video, the next code commentary that's going to come out, is going to have that other half of this footage that I had recorded for you. So that's what's going to have that next half hour. And that's you're going to see me typing mad HTML and stuff. But yeah, that's about it. Well, what now? Three more minutes. What else do I talk about? But yeah, that is the Python stuff that I've been trying to work with. I'm looking at some game maker stuff like I was telling you guys about earlier. Like the interactive shell. I actually, I can talk about this over the weekend. Yeah, just this last weekend. I mean, it's Monday right now. It's Monday, December 5th, 2011. I didn't do my intro. I should have said what day it was and everything. But whatever, whatever. Over the weekend, just Sunday, just yesterday, I had installed Windows 7 on my friend's computer. Because he had been running Linux except he's more of a gamer and he was really, really upset and disappointed that he can't run all the stuff that he would normally be able to do under Windows. So I just like, because Windows XP, his previous installation like broken or something, it would boot up and it would boot up to like the mouse cursor and under just a black screen, you couldn't do anything. So yeah, we slapped Linux on the mother trucker. I love saying that. I love saying that so much. We slapped Linux right on there. He suffered with that for a little bit. It wasn't really his forte because he's not a programmer. He's not a developer. He's nothing like that. He just wants to play games. So yeah, I finally caved in. I'm like, sure, fine. You can have an installation of Windows 7 and all that. And I gave him that and he was able to play with it. That was fine. The thing is like he's running a desktop, you know, so he doesn't have like a wireless driver. I'm sorry. He does have wireless driver, but he doesn't have the wireless adapter or like the NIC or the network interface card or whatever. That's usually installed by default. It's like built into laptops, but desktops don't have that. So we used a, I don't know, maybe, maybe some do. His machine didn't, whatever. But yeah, we had the USB driver for it. I had a USB adapter that I'd given him. And he's using that now. The thing is it didn't have a driver in Windows 7, or at least it wasn't like an easy thing to do. Like the setup wizard that was offered by Cisco, it was Link to Cisco, the USB adapter brand. So we tried that. That ran okay. The setup, I'm sorry, the setup wizard wouldn't run because that was for like Windows XP, Windows Vista and all that. But it gave us the like actual like source files for the driver, like the real thing. And then we had to go into the device manager on the machine, try it out and tell it to look for these specific files when Windows is trying to install the driver and then it had to do it manually. It was a little disappointing, especially because when we installed the previous version of Ubuntu on that machine on my friend's computer, it found the driver just had a problem. It knew, it would have them pre-installed by default. I didn't have to go through any setup wizard. I didn't have to bring the source files, tell the system that here it is guys, do your thing. Windows, Linux knew what to do at that moment and I feel great about that. Windows, I'm sorry, Linux surpasses Windows at this point. I feel like that's a good way to end the video. Thank you guys for watching. Thank you for listening. I hope this, I know this code commentary wasn't as good as you probably, you guys wanted but I mean I was doing this on a whim because I wanted to bring some content to you guys that was running out of stuff to do. So here you go. I know you're looking at a blank screen right now. Okay, comment, like, subscribe, holy crap, favorite. You know, do your thing guys. Thanks for watching, bye.