Hey everybody, this is the video of the AI project that I wrote about on previous post. The video says a little bit about what we've done. I hope you like it.
Showing posts with label project. Show all posts
Showing posts with label project. Show all posts
Saturday, June 1, 2013
Friday, January 18, 2013
Download Manager Project - Bash scripting
The download manager is the project that I made for UNIX Scripts and Utilities course. I used bash scripting and dialog. Dialog is for the GUI of the project.
The reason that I chose this project is sometimes I download lecture slides of courses that I'm interested in. For example, since MIT opened the most of their courses, I want to download the lecture files to see how they go over the courses and what the homeworks are. Downloading whole files by clicking every link was exhausting. At this point my project is lending a hand to make things easier.
Actually you can download files from a web site by using wget command. To download specific types of files like pdf files, you can give the extension of the file with -A parameter. Let's see an exampe of this.
wget -r -A.pdf http://www.cs.ozan.edu/~yildiz/prog101/
This command will download all pdf files in the given website which is supposed to include lecture slides or homeworks.
Since the aim of the project is using grep, sed, awk, cut and provide GUI to the user, I should have used something else. And I came up with this:
How does the script work?
The reason that I chose this project is sometimes I download lecture slides of courses that I'm interested in. For example, since MIT opened the most of their courses, I want to download the lecture files to see how they go over the courses and what the homeworks are. Downloading whole files by clicking every link was exhausting. At this point my project is lending a hand to make things easier.
Actually you can download files from a web site by using wget command. To download specific types of files like pdf files, you can give the extension of the file with -A parameter. Let's see an exampe of this.
wget -r -A.pdf http://www.cs.ozan.edu/~yildiz/prog101/
This command will download all pdf files in the given website which is supposed to include lecture slides or homeworks.
Since the aim of the project is using grep, sed, awk, cut and provide GUI to the user, I should have used something else. And I came up with this:
How does the script work?
- After a user enters comma-separated urls of web pages, the script keeps a list of urls by using awk command.
- The script has a loop to iterate over those urls.
- Then, the source of a web pages is downloaded with wget -k -O command. -k parameter is to convert all relative paths to absolute path.
- Then, grep extracts these absolute paths by looking file extensions and write them into a file. (The extensions of the files that are going to be downloaded is predefined.)
- Another loop downloads all files one by one. Also download bar is increasing when a file is downloaded.
- The script also keeps the history of the downloaded files.
And of course images of the project:
This is the part that user enters links.
Downloading screen. We are able to see the file that is being downloaded.
I put the codes to my gist. Click here to see the code. You can add new file extensions to be downloaded by modifying extensions variable.
Saturday, November 3, 2012
Long Time No See
I haven't written something for more than a month. I have reasons for that. I've been busy with some paperwork for senior-year project which I will give more information in another post later.
What am I doing?
I'm busy with loving my Unix class. I always wanted to go little deep on the subjects of Unix. This is being happened in my Unix class and I'm happy with that. Moreover my professor gave me a GNU sticker. Woohoo!
I'm also spending time on my Java project which is a course project. I'm doing Visualization of A* Pathfinding Algorithm. We'll submit this project at the end of the semester. But I started early and did some improvements. Actually, this algorithm was another thing I always wanted to learn. I knew that this is also highly used in games. That's why I wanted to learn.
Finally, I will share a screenshot of that project which is an inevitable ending of my posts.
What am I doing?
I'm busy with loving my Unix class. I always wanted to go little deep on the subjects of Unix. This is being happened in my Unix class and I'm happy with that. Moreover my professor gave me a GNU sticker. Woohoo!
I'm also spending time on my Java project which is a course project. I'm doing Visualization of A* Pathfinding Algorithm. We'll submit this project at the end of the semester. But I started early and did some improvements. Actually, this algorithm was another thing I always wanted to learn. I knew that this is also highly used in games. That's why I wanted to learn.
Finally, I will share a screenshot of that project which is an inevitable ending of my posts.
Sorry about the color choices. Green node is the starting node, red one is the destination node. Yellow ones are the walls that the path cannot pass through. Pink ones show the shortest path. User will be able to change the places of starting and destination nodes. Also they will be able to put walls wherever they want.
Subscribe to:
Posts (Atom)