Jump to content

What you did today


Walsingham

Recommended Posts

Man, broken ribs sucks. I broke 3-4 on my right side once during a particularly heinous bicycle accident and it friggin hurt to breathe for a week or so. Pulling a groin muscle is no picnic either.

 

yeah it's not exactly fun

 

i never realised just how many people hugged me until it was excrutiatingly painful....

 

sneezing or coughing was really nasty too

when your mind works against you - fight back with substance abuse!

Link to comment
Share on other sites

I broke 3-4 on my right side once during a particularly heinous bicycle accident and it friggin hurt to breathe for a week or so.

 

Sneezing is no picnic either! It feels like your lung is trying to escape through your damaged ribs!

bnwdancer9ma7pk.gif

Jaguars4ever is still alive.  No word of a lie.

Link to comment
Share on other sites

Oh, if anybody was at all interested, here's the code I ended up with. Tonight I learnt: regular expressions, file writing, sockets. You call the function like this: getImages('http://obsidianent.com')

 

It will create a file in the same directory as the programme. The log file will have the date of the retrieval as well as the website it retrieved it from. Meanwhile the file will be called 'Image Log obsidianent.com.log'. If you run it for the same domain more than once, it appends to the existing log file. Tomorrow I might make it provide full image links instead of context sensitive ones, but that's why I made it print the url in the log file also.

 

import urllib
import re
from time import gmtime, strftime

def getImages(url):
if url[-1] != '/':
	url += '/'
sock = urllib.urlopen(url)
pageSource = sock.read()
sock.close()
fileName = 'Image Log %s.log' % urlParse(url)
logFile = open(fileName, 'a')
logFile.write(htmlParse(pageSource, url))
logFile.close()
print 'done'

def htmlParse(pageSource, url):
imageList = re.findall(r'<img[ \S\s]*?src=["\']([ \S\s]*?)["\']', pageSource)
#for v in imageList:
#	if v[0] == '/':
#		v = url + v
return '\n' + strftime("%a, %d %b %Y %H:%M:%S %Z") + '\nSource website: ' + url + '\n\n' + '\n'.join(["%s" % v for v in imageList]) + '\n\n'

def urlParse(url):
domain = ''
domainTuple = re.search(r'(http://)?([\w.]*)|(\b)', url).groups()
for v in domainTuple:
	if v:
		domain = v
return domain

 

You'll need Python to run it: http://www.python.org/download/

 

Tue, 03 Jun 2008 00:16:16 AUS Eastern Standard Time

Source website: http://www.obsidianent.com/

 

/images/spacer.gif

/images/navBarEdge.gif

/images/logo.gif

/images/navBarCtr.gif

/images/navBarTop.gif

/images/games.gif

/images/info.gif

/images/jobs.gif

/images/contact.gif

/images/forums.gif

/images/navBarEdge.gif

/images/spacer.gif

/images/spacer.gif

/images/spacer.gif

/img_rotate.php

images/now_hiring.gif

images/NWN2%20Logo.jpg

images/winner.jpg

images/igns-overall-best-of-e3-2006-awards-20060519051235885.gif

images/finalist.jpg

images/logo_k2.gif

/images/spacer.gif

/images/matrox.jpg

/images/nav.gif

/images/spacer.gif

/images/spacer.gif

 

If you notice any bugs or things I could do better, tell me!

 

Edit: I just noticed I need to remove duplicate images, too.

Edited by Krezack
Link to comment
Share on other sites

I mowed grass and trimmed lawn edges from 7 in the morning till 4 in the afternoon(**** you prepositions). Just like I used to do every summer.

 

This time, however, I will get paid.

 

Hopefully I'll get to water flowers or dig graves or something soon though. Unlike lawnmowing among gravestones and across cemetery sections, watering doesn't seem to give my superiors such a massive tutoring drive. I don't like being constantly prodded when it's just me, that trimmer and tons of grass. It's like their marking system needed some kind of specialized mathematics to learn. Just go do you thing and stop giving me contradictory advice. I got more done during the day than anyone else there, ffs.

kirottu said:
I was raised by polar bears. I had to fight against blood thirsty wolves and rabid penguins to get my food. Those who were too weak to survive were sent to Sweden.

 

It has made me the man I am today. A man who craves furry hentai.

So let us go and embrace the rustling smells of unseen worlds

Link to comment
Share on other sites

I slept a lot. My hubby slept a lot.

i'm jealous. i don't sleep much anymore at all (not that i ever did, but now it's worse). not sure if it is withdrawal from xanax or a side effect of zoloft. grrr. at least quitting smoking has been real easy to do. 10 days and counting.

 

taks

comrade taks... just because.

Link to comment
Share on other sites

provide full image links instead of context sensitive ones
If using regular expressions, "context sensitive" is probably not the word you were looking for :ermm: (because regular expression can, in an enhanced form iirc, describe context sensitive languages, which is a class of languages following complicated grammar rules) Anyway, I actually wrote to give you a simple solution to this:
Edit: I just noticed I need to remove duplicate images, too.
Python has some cool data structures, one of them being a set. Just toss the image names into a Set -> voil Edited by samm

Citizen of a country with a racist, hypocritical majority

Link to comment
Share on other sites

provide full image links instead of context sensitive ones
If using regular expressions, "context sensitive" is probably not the word you were looking for :brows: (because regular expression can, in an enhanced form iirc, describe context sensitive languages, which is a class of languages following complicated grammar rules)

 

Ooooh, yeah! I remember fiddling around with those, actually. They're expressions with stuff on either side and a nested expression in the middle, yeah? IIRC they were rather complex methods of defining rather simple languages, usually (always?).

 

Anyway, I actually wrote to give you a simple solution to this:
Edit: I just noticed I need to remove duplicate images, too.
Python has some cool data structures, one of them being a set. Just toss the image names into a Set -> voil
Link to comment
Share on other sites

Hopefully I'll get to water flowers or dig graves or something soon though. Unlike lawnmowing among gravestones and across cemetery sections,

 

Please see the zombie survival sticky.

"It wasn't lies. It was just... bull****"."

             -Elwood Blues

 

tarna's dead; processing... complete. Disappointed by Universe. RIP Hades/Sand/etc. Here's hoping your next alt has a harp.

Link to comment
Share on other sites

And it still works, so I wanted to support that, too. It took me a while to figure out because I was looking for something that would just match everything (.*? was working but I was concerned about new-lines), but then realised I had to actually make it myself.
Ah, ic :) (if you want to play a little, try This little training-tool Just enter the regex under "Suchmuster"*, the text you want to apply the expression to under "Eingabetext"* and klick on the button "Zeigen"* on the left hand side)

 

Today I trained, then worked a while and now I'm working on convincing myself to begin learning for the next examn...

 

 

*: meaning "search pattern", "input text" and "show"

Edited by samm

Citizen of a country with a racist, hypocritical majority

Link to comment
Share on other sites

I've become a lab rat. Got a hep a shot yesterday for a health card and a tetnus diaphera shot today so that I can hopefully be among my peers at university. Just hope my previous school sent my transcripts and all I have to do is show them I'm immunized and I can be officially enrolled and hopefully finally start upon my path to being a successful CPA/CMA or Senior Accountant in the future. Of course that basically all depends on whether or not I can get an internship. If I don't I'm not exactly sure what I'm going to do since every entry level accounting position has required at the very least 2-3 years of experience and considering my cumulative job experience thus far is 3 months 3 years ago and has basically zero relevance I'm not exactly a great looking candidate, for anything.

There was a time when I questioned the ability for the schizoid to ever experience genuine happiness, at the very least for a prolonged segment of time. I am no closer to finding the answer, however, it has become apparent that contentment is certainly a realizable goal. I find these results to be adequate, if not pleasing. Unfortunately, connection is another subject entirely. When one has sufficiently examined the mind and their emotional constructs, connection can be easily imitated. More data must be gleaned and further collated before a sufficient judgment can be reached.

Link to comment
Share on other sites

I've become a lab rat. Got a hep a shot yesterday for a health card and a tetnus diaphera shot today so that I can hopefully be among my peers at university. Just hope my previous school sent my transcripts and all I have to do is show them I'm immunized and I can be officially enrolled and hopefully finally start upon my path to being a successful CPA/CMA or Senior Accountant in the future.

 

Hepatitis A? Tetanus? I wonder what kind of University you are joining. Sounds like the kind of place where the accountant from "The Untouchables" would come from.

 

Edit: On topic, went out with a client yesterday. Had some food and some beer. Then more beer. Then more beer etc. Ended up at home, falling asleep at 10 (or thereabouts) just to wake up again at 3, unable to fall asleep again. Finally fell asleep somewhere between 5 and 6, just to hear the alarm clock at 7. What a way to start a new day :)

Edited by Gorth

“He who joyfully marches to music in rank and file has already earned my contempt. He has been given a large brain by mistake, since for him the spinal cord would surely suffice.” - Albert Einstein
 

Link to comment
Share on other sites

And it still works, so I wanted to support that, too. It took me a while to figure out because I was looking for something that would just match everything (.*? was working but I was concerned about new-lines), but then realised I had to actually make it myself.
Ah, ic >_< (if you want to play a little, try This little training-tool Just enter the regex under "Suchmuster"*, the text you want to apply the expression to under "Eingabetext"* and klick on the button "Zeigen"* on the left hand side)

 

Today I trained, then worked a while and now I'm working on convincing myself to begin learning for the next examn...

 

 

*: meaning "search pattern", "input text" and "show"

 

Hey, thanks man! I was using the Python interpreter (similar to Haskell - allows on the fly commands) but unlike Haskell it doesn't allow pressing up to cycle through previous commands, so it's all copy paste - rather slow. This should be quite helpful. :shifty:

 

I finished the programme, btw. It uses a set, has a simple non regexp url filename function now, and writes all the images as full links (http://blah.com/blah/image.gif) even for ones like ../image.gif. I'm going to add a GUI and a function to optionally download some or all of the images found, so it might actually become a semi-useful programme!

Link to comment
Share on other sites

I'm picked a builder for the new house, now trying to settle on a floor plan. I'm kind of liking the first one. Opinions?

 

http://jimwalterhomes.com/Home-Models.asp?...;series=Classic

 

http://jimwalterhomes.com/Home-Models.asp?...;series=Classic

 

http://jimwalterhomes.com/Home-Models.asp?...es=Contemporary

"While it is true you learn with age, the down side is what you often learn is what a damn fool you were before"

Thomas Sowell

Link to comment
Share on other sites

Reading The Spine of the World most of the day after work. Doing that more than my DBZ marathoning. Been on a reading kick ever since I decided to finally finish The Dark Tower. Went through The Dark Elf Trilogy, which I found to be terribly exciting after The Dark Tower's plodding pace. And I've also purchased 5 books in the past month so I really need to kick myself to read more. I got The Lord of the Rings trilogy, Metal Gear Solid novel, and The Last Wish, the book introducing The Witcher. Not all of that is particularly relevant to today, but I know you care.

"Show me a man who "plays fair" and I'll show you a very talented cheater."
Link to comment
Share on other sites

I'm picked a builder for the new house, now trying to settle on a floor plan. I'm kind of liking the first one. Opinions?

 

http://jimwalterhomes.com/Home-Models.asp?...;series=Classic

 

http://jimwalterhomes.com/Home-Models.asp?...;series=Classic

 

http://jimwalterhomes.com/Home-Models.asp?...es=Contemporary

Get a prefabricated house!!! They are so nice and awesome and "green" and trendy/ahead of their time and awesome again. That's what I'm going to get when I'm rich and awesome. That or a subterranean compound where I horde cats and keep a mainframe of 4chan archives and recruit children for the impending revolution.

 

Edit: http://www.livinghomes.net/galleryModelhome.html

Edited by theslug

There was a time when I questioned the ability for the schizoid to ever experience genuine happiness, at the very least for a prolonged segment of time. I am no closer to finding the answer, however, it has become apparent that contentment is certainly a realizable goal. I find these results to be adequate, if not pleasing. Unfortunately, connection is another subject entirely. When one has sufficiently examined the mind and their emotional constructs, connection can be easily imitated. More data must be gleaned and further collated before a sufficient judgment can be reached.

Link to comment
Share on other sites

Is it just me or is theslug the least likely person to become an accountant, ever?

"It wasn't lies. It was just... bull****"."

             -Elwood Blues

 

tarna's dead; processing... complete. Disappointed by Universe. RIP Hades/Sand/etc. Here's hoping your next alt has a harp.

Link to comment
Share on other sites

I finished the programme, btw. It uses a set, has a simple non regexp url filename function now, and writes all the images as full links (http://blah.com/blah/image.gif) even for ones like ../image.gif. I'm going to add a GUI and a function to optionally download some or all of the images found, so it might actually become a semi-useful programme!
Glad I could be of service :( When you've added those things, could you put it somewhere to download? I could use it, I think.

 

Just came back from a business lunch. It's cool if people understand that university examns come before work and are able to extend timeframes ;)

 

 

I'm picked a builder for the new house, now trying to settle on a floor plan. I'm kind of liking the first one. Opinions?

 

http://jimwalterhomes.com/Home-Models.asp?...;series=Classic

http://jimwalterhomes.com/Home-Models.asp?...;series=Classic

http://jimwalterhomes.com/Home-Models.asp?...es=Contemporary

No cellar for any of them? Seems strange, but it's american style, I guess... Well, for the first one: Isn't it weird to have a bathroom in the kitchen, so to speak? And from a feng-shui perspective >_< it's designed quite suboptimally (dining room: table between window and door; generally a lot of straight lines between windows and doors: not much of a cosy home imo) The third one looks very ugly from the outside and the floorplan seems kind of experimental and confused/-ing. So I'd vote for the second - OTOH: It's you who is going to live in there, so if you like the first one best, just take it :) Edited by samm

Citizen of a country with a racist, hypocritical majority

Link to comment
Share on other sites

I finished the programme, btw. It uses a set, has a simple non regexp url filename function now, and writes all the images as full links (http://blah.com/blah/image.gif) even for ones like ../image.gif. I'm going to add a GUI and a function to optionally download some or all of the images found, so it might actually become a semi-useful programme!
Glad I could be of service :ermm: When you've added those things, could you put it somewhere to download? I could use it, I think.

 

Sure, and I'll provide the source code too, in case you want to tinker.

 

Gfted: Oops. Um, good lucky with accounting, slug.

Link to comment
Share on other sites

No cellar for any of them? Seems strange, but it's american style, I guess...

 

Assuming cellar = basement then the presence or lack thereof depends on your location. For example, up here in the North almost all homes have basements but in the South (IE: Florida) not one house has a basement. This is generally due to the fact that the water table is within 10-15 feet of the surface and the placement of a basement below that level would create a host of flooding/seepage problems.

Link to comment
Share on other sites

Is it just me or is theslug the least likely person to become an accountant, ever?

Breaking my heart Walsh. :'(

 

And why am I not a good candidate to become an accountant? I'm a terribly reclusive and embittered man who is likely to be married to his job. I'm the perfect person to be an accountant.

There was a time when I questioned the ability for the schizoid to ever experience genuine happiness, at the very least for a prolonged segment of time. I am no closer to finding the answer, however, it has become apparent that contentment is certainly a realizable goal. I find these results to be adequate, if not pleasing. Unfortunately, connection is another subject entirely. When one has sufficiently examined the mind and their emotional constructs, connection can be easily imitated. More data must be gleaned and further collated before a sufficient judgment can be reached.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...