[Home] [Rules] [@MegachanNews]

Name
Email
Subject   (new thread)
Message
File []
Password  (for post and file deletion)
  • Supported file types are: GIF, JPG, PNG
  • Maximum file size allowed is 3000 KB.
  • Images greater than 200x200 pixels will be thumbnailed.
  • Read the rules
  • IRC: irc.rizon.net #megachan

New board: Dev Board - /dev/

File 130118566917.png - (79.00KB , 779x487 , Screen shot 2011-03-26 at 8_03_48 PM.png )
2125 No. 2125 hide expand quickreply [Reply]
An anon in /cy/ wanted to see a thread about the imageboard I'm working on and some of the concepts in general.

To answer some some of the thigns posed, I've had a few months to stare at it now and have come up with a few conclusions.

1.) If I do tripcode based messaging, it'll be in another app that uses the same trip generation method and some sort of URL to identify the user's to and from. Something like skord@megachan.net#cy. You end up tracking way too many sessions when operating anonymously, so the scope of the project lies elsewhere.

2.) Because of the points in #1, I've completely decided against thread watching as people sort of think of it. Instead, I'll probably have post/comment creation hooks to call a third party service, like superfeedr. Then superfeeder can push to google news, jabber IM, etc.

3.) Bans are sorta trivial in my system at least, although a bit resource intensive. There's a layer that blocks even read access via project honeypot, then you're banned from contributing but not reading by admins. I have a simple UI for this. I'm only using IP now, but it'd be pretty easy to ban by anything in the HTTP headers, like user agent, etc.

So what have I learned so far?

The structure and model dependencies really lend themselves to a relational data structure. An experiment with MongoDB went horrendously wrong, especially once I brought in nested sets.

Scaling has been a wee bit more difficult than I thought. I can render then memcache quite a bit, but even that has a price. Setting expires headers saves me amazon money (paid out $0.01 USD last month), but other cache control methods don't work so hot with something that is meant to update as fast as IM. I've got the "reading" part to about double where I want it to be, response wise, which is still quite low comparatively speaking.
Message too long. Click here to view the full text.
15 posts and 1 image omitted. Click Reply to view.
>> No. 3044
>>3043
Oh, okay. No, I don't think Nginx allows editing config files without restarting the server. I think that's a good thing, though; Apache really is unique in having the default functionality of stat-ing possibly dozens of different potential config file locations on every page load. It's actually a "low-hanging fruit" optimization to turn this functionality off on busy Apache servers that don't need it. That being said, Nginx does have modules for doing things like querying SQL databases from the configuration, so you could have a script that stores the banned IPs in a database and then have the configuration query that database on a page load.

Or you could just edit Nginx's config file, restart the daemon, and let whoever hits the server in the seven seconds it takes the daemon to restart (if anyone) get a "server not found" error. OH WELL.
>> No. 3046
>>3044
Your 'OH WELL' attitude is worrying if you're a sysadmin :p

The ban system can actually get rather busy - it has to clear temp bans and the like, and if you are getting tons of traffic having a sql query run for every URI request is a major performance hit (don't forget that the purpose of a sitewide ban is so that they can't even access stuff like CSS files). I'd rather it looked up a hash table or something, personally. You could then load a copy of that into a tmpfs to speed up access
>> No. 3048
>>3046
I don't sysadmin anything terribly important nowadays. But, I mean, are image boards terribly important? Do "chans" really need 100% uptime? And also, image board sites have clearly proven themselves to have a long tail when it comes to traffic and activity. So maybe 4chan and 7chan need supermegaoptimization black magick, but for just about everyone else, their sysadmins' lives will be better served by just taking a walk outside and getting some fresh air.

I agree that doing an SQL query for every page load seems kind of wasteful, but presumably a table with a bunch of IP addresses could be cached entirely in memory by the RDBMS without any trouble - and for stuff like temp bans, I think an SQL table would actually be quite useful; have a cron script that runs every half hour to unban IPs and such. And I'm really just guessing here, but I wonder if it would be possible to have it so that, if the client is using HTTP/1.1's KeepAlive, we only need to hit the SQL table once per connection… Hmm.


File 131325538017.jpg - (273.63KB , 800x586 , 2.jpg )
2668 No. 2668 hide quickreply [Reply]
http://englishrussia.com

The book that I'm reading reminded me of this site, and some of the awesome photoblogging they've done before. A really nice selection of images from the USSR that generally avoid the dull military-type material we associate with the country.
354 posts and 354 images omitted. Click Reply to view.
>> No. 3023
File 131325744769.jpg - (262.11KB , 800x518 , 7_001.jpg )
3023
Misc
>> No. 3024
File 131325745783.jpg - (268.08KB , 800x521 , 8_001.jpg )
3024
Misc
>> No. 3028
>http://englishrussia.com
very cool site


File 131302367528.jpg - (13.21KB , 305x203 , 2.jpg )
2634 No. 2634 hide expand quickreply [Reply]
Lets do this YO’ Jam Mastuh Tock to the Tock. Tho- in- it- down like the internet gangstuh he iz. Yo Yo Yo . HTML killaz In the Hiz-ouse.

You’z a troll bitch Yo
You’z a troll bitch Yo
Why you pretend to be a pimp
When you a mother fuckin’ Ho?
You’z a troll bitch Yo
A fuckin’ troll bitch Yo
You ain’t even foolin’ no one
When you actin’ mad bro

Yo mama must have like the dick
Because she birthed a little prick
Now you actin’ like an ass
Cuz actin’ cool must be a bitch
Message too long. Click here to view the full text.
2 posts omitted. Click Reply to view.
>> No. 2641
.....you know, it's only chance I happened to see the insults aimed at me in there when I went to see what the hell >>2639 was talking about.

I dislike Ghetto rap bullshit even more than I dislike you, you idiotic cunt.
>> No. 2650
straight outta /ste/
a crazy motherfucker named Tick Tock
he'll shoot your ass with a motherfuckin' big glock

he shot your sister, he shot your cat
he woulda shot yo mama but
dammit, there would've been too much paperwork.
>> No. 2656
File 131315121763.jpg - (14.72KB , 320x432 , 2u7r66d.jpg )
2656
lol why so mad bro?


File 131308776822.jpg - (87.32KB , 400x279 , 1313087405243.jpg )
2642 No. 2642 hide expand quickreply [Reply]
3 posts and 3 images omitted. Click Reply to view.
>> No. 2646
File 131309601992.jpg - (38.39KB , 500x370 , tumblr_lmt44xTQ5S1qhvzdio1_500.jpg )
2646
>> No. 2647
File 131309603848.png - (8.13KB , 368x468 , grey-alien_119.png )
2647
>> No. 2648
>>2644
Heck, I'd probably do this, too... :P


File 131294658589.jpg - (82.57KB , 780x594 , silent-hill-3-portrait.jpg )
2628 No. 2628 hide quickreply [Reply]
http://www.youtube.com/watch?v=WxGS-2M6_5I
>> No. 2632
that... scared the shit out of me.
>> No. 2636
>>2632
It.. scared you? I found it to be hilarious.


File 129095797854.jpg - (150.17KB , 650x650 , 09.jpg )
1141 No. 1141 hide expand quickreply [Reply]
So /disc/ what scares you? Also, general paranormal thread.
42 posts and 5 images omitted. Click Reply to view.
>> No. 2629
>>2626
Newfoundland.

we're not exactly cyberpunks, more like webnecks
>> No. 2630
>>2629
lol
haven't heard that one before
>> No. 2631
File 131295077727.png - (480.65KB , 624x352 , vlcsnap-2011-08-10-01h47m54s200.png )
2631
>>2630
It's from Squidbillies. There's an episode by that name.


File 129466826523.jpg - (31.17KB , 480x750 , 2hxq5jt.jpg )
1535 No. 1535 hide expand quickreply [Reply]
What is Megachan's opinion on redheads?
94 posts and 83 images omitted. Click Reply to view.
>> No. 2622
>>2621
No way! I know her too.
>> No. 2624
>>2622
Serious? Are you from Minnesota?
>> No. 2627
>>2624
No, I'm just fucking with you. Sorry bro.


File 130261979772.jpg - (18.25KB , 400x324 , Yuri-Gagarin-Moscow-_7137.jpg )
2171 No. 2171 hide expand quickreply [Reply]
No 50th anniversary thread yet? On Megachan? I'm surprised.
11 posts and 1 image omitted. Click Reply to view.
>> No. 2187
>>2186
Maybe. Apparently it was with his bare hands though. Made me think of movie Cossacks and exaggerated Bond villain brutality.
>> No. 2188
Poor lil' wolf cub.
>> No. 2619
File 131290755098.jpg - (18.18KB , 467x308 , moom.jpg )
2619
>>2174
re: Shepard - he pissed himself, he was so scared... actually, it was also a ballistic shot, they 'threw' him up and he came down, end of story.


File 130819303324.png - (312.01KB , 500x499 , 1307583459810.png )
2363 No. 2363 hide expand quickreply [Reply]
asdf
8 posts and 3 images omitted. Click Reply to view.
>> No. 2392
File 130867415676.jpg - (67.11KB , 725x614 , bob shadow.jpg )
2392
He's always been waiting there.
>> No. 2393
File 130867419631.png - (386.35KB , 637x477 , PeeWeeTitles-Bob.png )
2393
ALWAYS
>> No. 2618
File 131290610174.jpg - (32.61KB , 500x375 , Mayor-Blagojevich.jpg )
2618
HEY! God's got the best game in town!!! (it's like being friends with a big town mayor: you want, you suck up, then brag about it) Everyone then sucks up to you.
4) PROFIT!!!


Delete post []
Password  
Report post
Reason  
[0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] Next