Skip to content

u/Error401

In this archive from May 2011 to Jul 2023

4
posts
22
comments
0
media
128
score

Oh, yeah, please don't curl localhost like this in 2023.

The particular reason this worked better than those solutions (especially at the time) is because it was a web request and went through the same auth and other flows that a web request would go through, which was very convenient. Facebook was pretty vanilla PHP (but running on HHVM) at the time and the routing was handled inside HHVM config files, not in userland code.

7 points

Ha, that's true. This was a long time ago (I think it was around 2008). We were using Akamai at the time, not sure if they fully supported ESI back then, and I think the machine-locality was desirable for APC hitrate. We also did ended up using this primitive for things other than "just rendering raw HTML" (i.e., parallelizing parts of GQL queries) and those needed significant post-processing on the response, so ESI wouldn't have let us do that long-term.

Just a story about how these solutions tend to stick around.

6 points

I meant to reply to this earlier and I had a really nice post typed up and then my hand brushed the F5 key and I lost it; I was like "fuck it, I'll respond later." Anyway, some suggestions:

  • When you find yourself with some free time, read the source and try to understand it as much as possible. It'll help you with extending it and truly customizing it.
  • For the status bar, you can pipe conky output to x and read the line in, passing it to xsetroot. I'll post a link to my .xinitrc and .conkyrc at the end of the post.
  • Use dmenu. It integrates really well and it's quite functional.
  • I edited config.h to add key bindings for my multimedia keys and binded Alt+Shift+E to pm-suspend. Seems to work quite well for me.
  • Use urxvt. It's a pretty awesome terminal and the transparency works quite well.
  • Use feh to set up your background image, if you haven't already figured out another solution. See my .xinitrc for clarification.

My .xinitrc and .conkyrc: pastebin

If you have any other questions, feel free to PM me and I'll let you know if I've happened to come across the same problem or know of a solution. Reading the source is an excellent way to get the feel for this WM though.

edit: I use SLiM. Try it, see if you like it. Just so you know, the default theme sucks balls, but arch has some nice themes in the archlinux-themes-slim package.

2 points

Learn C if you don't already know it and work on the kernel? Or look for unmaintained projects and consider maintaining them? There are always projects in need of more manpower.

Also, might I suggest running dwm as your window manager? It's a ridiculously lightweight tiling window manager (less than 2000 lines of code) and I love it. It's all in C and to make config changes, you need to recompile, but you can really make it your own. Just a thought.

7 points

Woops, I'll edit the OP. I forgot it was an eSATA+USB port when I made the post, but it doesn't make a difference. I figured out why it wouldn't recognize anything and I got it to recognize the first drive in the bay, but it won't see anything else. >_> I'm trying to figure out if this controller has support for port multipliers, but I can't find anything.

1 points

Okay, this is weird. I got it to recognize one drive, but now the problem is that it won't recognize the rest of them (the other 2) in the bay. I'm fairly certain that it has a port multiplier. What will the eSATA controller be listed under in lshw? I'll research it once I know what the part number is. =X

1 points

Didn't work on an Ubuntu livecd (10.10 I think?) that I had lying around either. Same exact dmesg output as well. I'll check in Windows in a bit; I have this set up to dual boot but I literally haven't booted into Windows even once, so I'd have to download drivers and shit before I could even try it. I'll get back to you on that.

1 points

End of this list.

Back to top

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.