Pages

Showing posts with label Python. Show all posts
Showing posts with label Python. Show all posts

Friday, July 6, 2012

Python

I've been doing a project in Python lately. I'm really interested in it. To start things off, here's a flashback of me when I was 7 years old:
-reading book about business and economy-
"... the best way to sell a product is to listen to what people want, and then create it."
-close book, start listening to what my family wants-

the rest is not important. It's just that line. That line of that book which I don't even remember the title of stuck out to me after all these years for a reason. Who knew in a kid's book, I would find something so genius? Just listen to what people are complaining about, and answer that with a product, and you're set. Easy money. Right?

So, I just kinda had that advice stored somewhere in my brain for 6 years. Recently, I was on Twitter (no duh I'm always on there). A Rioter (someone who works at Riot, the people who produce and maintain the free-to-play game I love, League of Legends) named Rinoa needed help with a computer build. Since I had researched computer builds for a few months before this because I wanted one myself for my birthday, I decided to help.

HERE is where the idea started. I went and found a bunch of good products that Rinoa could use to build her very own hot pink gaming computer. I needed a way to tell her all these products and information about them in 140 characters (curse you, twitter character limit) or less. I found pastebin. Or well, I didn't find it. I had used it before, but only for posting code. Anyways, I pasted all the products into the paste box. Here's the outcome, for those curious:
http://pastebin.com/gp39QVwf

Note the format.
<category>
<item name>
<price>
<url>

I had to go to each of the pages and do this in a very systematic, tedious way. I had to copy/paste 10 things from 4 locations on 10 pages. Not fun. The thing is, I also happen to know an online community who had this same problem a lot. The computing, customizing, and overclocking section of HackForums (obviously I can't speak for them, but in my opinion, pastebin is the best way to give lots of info on a computer build at a glance like that).

So, I took it upon myself to make this my first real Python project. (my first real project, period. I've had others, but this one will be finished and released!)

-take Newegg URLs
-spit out a ton of info about the product
-so far I only have name/price/url
-aiming for name/category/rating/price/url/optional comments

category is hard. rating is semi-easy. optional comments are difficult-ish.

Here's a video of my program in action (so far):

Watching it in anything less the 720p makes it hard to see. Just sayin'. Also, my taste in music is better than yours.

Wednesday, May 16, 2012

Hello, World

First post. I made this blog because of inspiration. It's 2:32 AM right now. My inspiration to make a blog:
-Watching The Social Network.
-MIT Admissions Blogs
-Being up late at night
-Having a place I can dump all my thoughts into
-Having a place safe from people in my school
-I'm sick of Twitter's micro-blogging format in which you can only use 140 characters to express your thoughts.

That's all I can think of off the top of my head. I just hit 80 WPM last night, too. That's kind of a part of it, I guess. It's not a reason for making the blog, but it's a plus. I don't know if this blog is an in-the-moment thing or if it's gonna be something I take with me through high school and college, and I hopefully I can make it better by learning HTML and stuff. For now, I'm sticking to learning JavaScript, but I waver a lot with learning languages. I was learning Python a week and a half ago. My first language that I ever tried was C++. I failed at it. I then did a bit of Batch (@echo off stuff) and HTML. I don't remember much of anything from HTML besides <p> and </p>. Or is that just because I watched The Social Network? Hmm. (Funny thing I just noticed: typing < or > in Google's simple blog posting shows "&lt;" or "&gt;" in HTML. Maybe if I ever learn HTML I'll know more about that.

I'm NOT going to update this blog regularly. I don't even know if I'll update it at all. I'm not good with sticking to schedules. Inconsistency is my middle name. I don't want it to feel like, "Ugh. Time to update my blog." I want it to be something more like, "Wow. That was interesting. I'm gonna blog about that."


//there used to be a paragraph here, but my mind is controversial so I backspace a lot. I don't like it.

Anyways, welcome to my blog. :)