-
Posts
1385 -
Joined
-
Last visited
-
Days Won
2
Content Type
Profiles
Forums
Gallery
Events
Blogs
Everything posted by Blake
-
Oldie Oddish \o/
Blake replied to Oddish DIY's topic in BlogScape (Ongoing Progress Reports and Goals)
Wasn't pop tart saying how insanely lucky you were yesterday in the chat? That's awesome, congrats :)- 1469 replies
-
- Skilling
- Boss Hunting
-
(and 1 more)
Tagged with:
-
Blake's DIY Blog - Started Ironman!
Blake replied to Blake's topic in BlogScape (Ongoing Progress Reports and Goals)
So, I decided to get a few levels after not playing for a few days. I started off the day by getting a blacksmith's hat and apron off of my two daily spins (what are the chances of that?), so I started smithing. I went from 56-60 I think. I also did a bit of slayer. Also got a nice clue :) I also collected MTK for the first time (10 maples) so I decided to get 60 fletching. I'm pretty close to 60 base. -
I believe crew and then ship is the most suitable (Especially if you have all the upgrades already and dont really need going back), seeing you need 10k to get the 4th ship and it would take like 5-6(¿?) days to obtain all that jade (120-180 each regular voyage..maybe a 600 one special?), whereas getting better crew will help increase the % of success by a nice number using only 3.6k jade (counting 6 basic crewman for each stat at 200 jade each). Base stat crew is 1k, level 3 jade crew has the same stats as lvl 7 scythe crew which is quite a bit of difference. Thanks for the advice! It's unlikely I'll be able to resist spending some jade before going for the 10k anyway. Base stat crew being 1k is a bit disappointing though, even if it rises quickly. I have several Scythe guys with over 1.3k by now. On another note, has anyone noticed how female crew only exists in the lower ranks, good fortune wenches aside? There's a glass ceiling in the RS ship industry, you guys. I think the bowl morale crew is a woman
-
If you want to explore, do quests. They'll let you see lots of the new areas/features and teach you about new lore, etc. You'll have to get items and levels for them, which will teach you more. I'd just filter the list by difficulty, and start down the list
-
Maybe? Blaze
-
That's awesome, would you care to pm me names? Being a diyer, i'd love to know of others :D
-
Hopefully he took himself instead of using them on other people
-
I did kind of laugh at myself while writing that, going through a few different scenarios in my head :P
-
There's a general rule that I've heard before that if she's fine with you touching her hair, she'll be open to kiss you. You can't just grab her hair and see what she does though, you have to have an excuse to do it or do it flirtatiously (word? lol)
-
I expect about $400 a semester... If the price at any bookstore, subtract the Amazon sellback is less than amazon rent, I'll buy it. Otherwise, I'll rent off amazon. Nice tip though, is don't buy until after the first day of class. Even though some books will say required, a lot of the times a professor will say it's not completely necessary to buy the book. You can also usually tell by looking at the syllabus, etc.
-
I live about a mile from downtown Minneapolis right on the edge of the U of M campus, in a 3k sq foot house. 4 rooms, 6 people, rent is 500/month. Parking is $75/month though... Next semester I'm moving another .6 miles out, and rent is only $320, with free parking. That's about as cheap as you can get here.
-
Nice necro. I'd like the idea, although I don't think it's absolutely necessary. Really the main thing it accomplishes is just more prestige in that people know if you're lying about being 100% DIY or not. Also, funny to see Runar's post, as now he is one of the top DIYers :P
-
Post all RS Screenshots, Videos, and Sounds here!
Blake replied to misterxman's topic in General Discussion
Pretty sure it's by the way :P -
I'm sure he knows that, he was implying a bug that was random, like not having 90 thieving, would make the occultist not show up.
-
Another update, incase anyone is still following. I changed the code a bit to return one json objects with subobjects of the products I wanted. This works fine on the net63 hosted site I have, and works with the json parser fine. Here's the final code. <?php echo "{"; $id = $_GET['id']; $end = $id + 5; $comma = $id; for ($id; $id < $end ; $id++){ if ($comma != $id){ echo ",";} echo "\"$id\":"; $dom = new DOMDocument(); $content = file_get_contents('http://www.walmart.com/ip/' . $id); @$dom->loadHTML($content); $a = $dom->getElementsByTagName('meta'); for ($i=0; $i < $a->length; $i++) { if ($a->item($i)->getAttribute('itemprop')){ $b = $a->item($i)->getAttribute('content'); $c = $a->item($i)->getAttribute('itemprop'); $json[$c] = $b; } } echo str_replace('\\/', '/', json_encode($json)); } echo "}"; ?> You can see what it returns at blake.net63.net/?id=10311410 which will start at cheerios and get the next 5 items. I downloaded the XAMPP and figured out how to get it set up. However when I run it, I get the same error as before - [hide] Warning: file_get_contents(http://www.walmart.com/ip/10311410): failed to open stream: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. in C:\xampp\htdocs\scripts\walmart.php on line 15[/hide] The localhost vs being hosted on the internet must have some effect on it... Not sure how to fix that. Other than that, it works good. Net63 won't let you go over 10 seconds of processing time though, so I can only get ~15 items.
-
Blake's DIY Blog - Started Ironman!
Blake replied to Blake's topic in BlogScape (Ongoing Progress Reports and Goals)
Yeah, too bad I was alone :P Past couple days has mostly been POP. Think I'm like halfway to the third region or something. Anyways, I also did a couple daily challenges for summoning and Woodcutting, getting me a level in that. Got 31 magics from a 15 arctic bear task, so that will be great for quests and such. I also cleaned my bank, so maybe bank picture soon. Hasn't changed much though -
Oldie Oddish \o/
Blake replied to Oddish DIY's topic in BlogScape (Ongoing Progress Reports and Goals)
Awesome statistics, I enjoyed reading them!- 1469 replies
-
- Skilling
- Boss Hunting
-
(and 1 more)
Tagged with:
-
You would basically have to run it once for every item though, as they aren't likely to be close in ID #s. If walmart has 200 items in their ad, and they have 3 million total, the chance that an item is within 10 id#s of another is very slim. If you were going to do it like that, wouldn't be not even worth it to have a loop? The startup time isn't a big deal, I don't think.
-
Then you only need to handle a certain amount of items at a time. It doesn't make sense to download everything at once. Well, all of the items in an add will have different ID #s, that you would have to manually input each one of to get the values. If you go through it once, and save all 3 million or whatever to a database or something, you would have all of them available. This is a very early project, and I don't even know where we're going to go with it, if anywhere. It's more of just a proof of concept that we can do this, and a fun project for me to learn a few new things. And thanks, Obfuscator
-
The idea started by wanted to compare prices in weekly ads of the company I work at, and other ones. I was seeing the feasability of getting the price of every product that's on a website. It's more of a proof of concept really. Thinking about it, you could use a similar script to get values of anything like currency exchange rates, weather information etc.
-
Well that was easy enough :) Like I said earlier, I haven't ever used PHP, but this was easy enough to understand. http://blake.net63.net/?id=10311410 <?php //echo $_GET['id']; $id = $_GET['id']; for ($id; $id < ($id + 1000) ; $id++){ $dom = new DOMDocument(); $content = file_get_contents('http://www.walmart.com/ip/' . $id); @$dom->loadHTML($content); $a = $dom->getElementsByTagName('meta'); for ($i=0; $i < $a->length; $i++) { if ($a->item($i)->getAttribute('itemprop')){ $b = $a->item($i)->getAttribute('content'); $c = $a->item($i)->getAttribute('itemprop'); $json[$c] = $b; } } echo str_replace('\\/', '/', json_encode($json)); } ?> The way it returns, like if you click on the link, is multiple JSON objects. Pasting that into the parser doesn't exactly work, as it requires only one object. If I edit it and change the end } and the beginning { of each object (except the first and last) to a "," it will work, showing it as one big object. Might be a little confusing, so example - Code provides this {obj1} {obj2} {obj3} ... {obj 1000} The Json reader requires one object, so if I change it to... {obj1 , obj2 , obj3 ... obj 1000} it works fine, just displaying them as one object. The PHP just creates them as json objects, so I don't know if there would be an easy way to do the above change, but I don't think I need to worry about that right now. Thanks again for the help! EDIT: The hosting service only provides a 10 second calculation limit, so it will only get a few items. Is there a way I can write this locally, and run it on a local server, for example in Visual Studio 2012, so that it will get all of the objects, or however many I like?
-
That's perfect, thank you all for your help. I'm going to work on putting it in a loop to do it for the next 1000 product id's, and see how it goes.
-
That's awesome! Didn't know what a json parser was, but I googled it and found an online one. I've never used php before, and am new to making applications and different IDE's... so I'm not sure how/where to use the php code, how to put it in a loop, and how to run it. If I could get those, and save a file full of what's in your last line in your code block, that's exactly what I need. EDIT: in the url part of your code, how does $_get['id'] lead you to the cheerios page, or return 10311410 (the end of the url for the cheerios?) EDIT2: also, in the 5.2k lines of code for the walmart page, there's three blocks of meta tags. I need the information in the second one, ie the <meta itemprop="image" content="http://i.walmartimages.com/i/p/00/01/60/00/27/0001600027528_300X300.jpg"/> <meta itemprop="brand" itemtype="http://schema.org/Organization" content="Cheerios"/> <meta itemprop="manufacturer" itemtype="http://schema.org/Organization" content="General Mills"/> <meta itemprop="model" content="27528"/> <meta itemprop="productID" content="016000275287"/> <div itemprop="offers" itemscope itemtype="http://schema.org/Offer"> <meta itemprop="availability" itemtype="http://schema.org/ItemAvailability" content="http://schema.org/InStock"/> <meta itemprop="price" content="3.68"/> <meta itemprop="priceCurrency" content="USD"/> <meta itemprop="seller" itemtype="http://schema.org/Organization" content="Walmart.com"/> It looks like yours just got the ones that start with <meta name="
-
Making progress, still two major roadblocks though. Also, triple post :P First, i'll post my code... string urlfinal = "http://www.google.com"; WebClient client = new WebClient(); string answer = client.DownloadString(urlfinal); TextWriter tw = new StreamWriter(@"C:\Documents and Settings\thic009\Desktop\htm.htm"); tw.WriteLine(answer); tw.Close(); var doc = new HTMLDocument(); HtmlDocument htmldoc = new HtmlDocument(); htmldoc = loadhtmfile(); List<string> metaTags = new List<string>(); metaTags = extractmetatags(htmldoc); //metas is a gridview metas.DataSource = metaTags; metas.DataBind(); TextBox ans = new TextBox(); ans.TextMode = TextBoxMode.MultiLine; ans.Columns = 140; ans.Rows = 80; ans.Text = answer + "done"; addhere.Controls.Add(ans); } private List<String> extractmetatags(HtmlDocument doc) { List<string> metatags = new List<string>(); foreach (HtmlNode meta in doc.DocumentNode.SelectNodes("//a[@href]")) { HtmlAttribute att = meta.Attributes["href"]; metatags.Add(att.Value); } return metatags; } private HtmlDocument loadhtmfile() { TextReader reader = File.OpenText(@"C:\Documents and Settings\thic009\Desktop\htm.htm"); HtmlDocument doc = new HtmlDocument(); doc.Load(reader); reader.Close(); return doc; } First major probelm - the google.com website works fine with this, although the one I want, the walmart one, doesn't. This is still the same problem as the post before (I updated the picture though). Is Walmart somehow stopping me from saving the html? That's the line I get an error at. Second - In the code above, it searches through the HTML, and gets all of the values of the href tags. At first, I tried it with meta tags, but it gave an error (Object not set to an instance of an object, I think). With href, it worked fine. I displayed the answers in a gridview, this is what the output looks like. [hide][/hide] Any ideas on how to fix those? Also, am I heading in the right direction with this problem? I don't know a lot about different libraries or different ways of doing things, so I want to make sure i'm on the right track.
-
Maybe 1600mhz RAM? Idk how much that would help though.
