Skip to content

u/ambiversive

In this archive from Jan 2009 to Jan 2012

63
posts
177
comments
12
media
2.3k
score

So I'm using wget to fetch a backup for my link aggregator, but redirects are fuxing me up.. help?

So I'm using wget like this: wget -E -H -k -K -p $url -P ../cache/ And it works fine if the link is simple enough and doesn't redirect. I just point to /cache/$url and voila, I have a backup. But if the site redirects, I get screwed! For example: http://www.bbc.co.uk/go/rss/int/news/-/news/entertain...

3 points17 comments
Open on Reddit

Seeking feedback on my CMS

It's been posted here before, and I've tried to take all the critiques into account. Features: OOP/MySQL/PHP/HTML/CSS/JS/Jquery/scrollTo+LocalScroll Documents organized in tree hierarchy, each document can act as directory Every edit of a document saves a new revision with the old document Chat inte...

6 points59 comments
Open on Reddit

If you were making a link aggregator with PHP and wanted to save copies of the contents of the links, what would you do?

You could save the contents of the link using fopen(), no problem. But that is the most naive method. You'd be left with a jumble of junk that wouldn't display properly without fetching all the other files it is dependent on. If we're just after the content of the page, we could use something like b...

5 points9 comments
Open on Reddit

Describe one important architecture consideration that must be considered when building a complex, database-driven, interactive, multi-user website

So I'm a terrible software architect, but I'm trying to get better. These are the topics I'm studying in that effort and I think having clear descriptions of these concepts all in one place would be beneficial. Some entries in this list are jokes, please beware. Frameworks Hashing Encryption Form ke...

5 points20 comments
Open on Reddit

Alternatives to eval?

Let's say you wanted to keep code in a database then execute it at certain places. Eval works, but I've been told by numerous people that it is cumbersome and incorrect. So what would be the optimal method of executing code stored in a db?

2 points59 comments
Open on Reddit

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.