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.
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.
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.
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.
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.
I run GNOME3 thorough gdm. I figured it was that simple, tbh, but I wanted to make sure I wouldn't mess up my system. Do you use xmonad or dwm? Any tips or suggestions?
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.
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
Lenovo y560p. It's on the list of Sandy Bridge recalls, but it was a few months ago and Lenovo said they didn't ship any more with that chipset after the recall. I'm going to check the cables later if I can figure out how to get this laptop apart without wrecking it.
There's a dedicated eSATA+USB port on the outside that I'm using. The USB part works fine, interestingly enough. This is on a laptop, I'm not sure if the mobo is easily accessible. I'll look into it.
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.
You know what? It might be the i7 Sandy Bridge I'm running. I remember Intel had an eSATA related recall on them, but that was a few months ago. I'll call Lenovo support tomorrow and find out.
Too busy curling localhost to invent time travel, who hasn't been there?
Oh, yeah, please don't curl
localhostlike 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.
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.
If you can see the actual table flip character (#8), can you do a 'pacman -Qs ttf' for me so I can see which font packages you're using?
Alright, I got the first and sixth. No dice on the 8th. Thanks!
Thanks. I use Chrome, but I'll bookmark that incase I ever switch to FF. I just want to say that that extension is incredibly wonderfully named.
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:
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.
Nifty. I actually don't like them, so I'm going to refrain from finding the correct vga parameter for my screen.
I have never seen any arch logos during boot before and I have eight cores. I think they did away with it.
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.
I run GNOME3 thorough gdm. I figured it was that simple, tbh, but I wanted to make sure I wouldn't mess up my system. Do you use xmonad or dwm? Any tips or suggestions?
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.
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
I checked the page for the y560p and there was no BIOS update available. Also, when I downloaded this one, it said that it was the wrong one anyway.
That's for a y550p; I have a y560p.
It's currently on AHCI. What should it be on?
Lenovo y560p. It's on the list of Sandy Bridge recalls, but it was a few months ago and Lenovo said they didn't ship any more with that chipset after the recall. I'm going to check the cables later if I can figure out how to get this laptop apart without wrecking it.
There's a dedicated eSATA+USB port on the outside that I'm using. The USB part works fine, interestingly enough. This is on a laptop, I'm not sure if the mobo is easily accessible. I'll look into it.
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.
You know what? It might be the i7 Sandy Bridge I'm running. I remember Intel had an eSATA related recall on them, but that was a few months ago. I'll call Lenovo support tomorrow and find out.
Nope. When I plug it in, dmesg tells me this.
God damn it, let me go check. You might be absolutely right. Fuuuuuuuck.
End of this list.
Back to top