topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Friday December 19, 2025, 4:22 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Recent Posts

Pages: prev1 ... 77 78 79 80 81 [82] 83 84 85 86 87 ... 364next
2026
Living Room / Re: Homeland Security Shutting Down Web Copyright Violators
« Last post by f0dder on November 27, 2010, 10:38 AM »
Deeply, deeply, deeply troubling.

I don't care much that a torrent (or whatever) site is gone - but the way it's done and by who? Ugh.
2027
Hmm, so now ad-bots are starting to make a handful of posts to become accepted? - and then they throw in the link? Or is johnmash an underpaid poor sod who try to make a living? Who can tell?
Indeed - looking at his posts, he's either a spambot... or somebody who has nothing useful to contribute.
2028
yes its true but i think get paid to click on ads is good for home business you don't have to input any of your information.it takes like 5mintues a day, and it just keeps adding up!!!!.the sites pays out(someone on their forums recived over $12,000 from the website.
Stuff like that makes me sick.
2029
General Software Discussion / Re: Windows Security Essentials
« Last post by f0dder on November 26, 2010, 01:56 AM »
It was mostly the firewall and other suite features that swayed me back to buy another year of Eset's service.  Of course I am on WinXP still.  If I were on Win7 or even Vista things might have been different....
XP firewall is just fine - you only need to block incoming threats, which it does perfectly well. No need to use anything else, really.
2030
General Software Discussion / Re: Linux webserver du jour?
« Last post by f0dder on November 25, 2010, 01:17 PM »
I added Capistrano to the mix yesterday evening, and it's definitely nice being able to type "cap deploy" and have the latest version of the website checked out from subversion + app-server restarted automatically. It might be slightly overkill for out situation, which is a single httpd, single app-server instance (passenger) and a single database, and all running on the same system... but it does automate stuff, and should the system ever need to scale, you can simply add more servers and update the deployment script.

Took a slight bit of work to get up and running, especially since I had my subversion repository running through svn:// - I started by moving that to svn+ssh:// , which required changing a few things here and there. Upside: my svn setup is now pretty secure, and it's not too bad adding new users - their pubkey (and some SSH tunnel command-overriding magic) in ~subversion/.ssh/authorized_keys. I've wanted to do this for a while, but never got around to it, especially not after deciding to switch over to git. My two classmates insisted on svn for this project, so here we are :)

I also got the time to look into SSH agent-forwarding, which is neeeeeeeeato. I've normally only SSH'ed into one box, but when SSH'ing to another box, or scp'ing or svn+ssh'ing back and forth between systems, it really simplifies things - and is a lot more secure than keeping your private keys (or, *shudder*, plaintext passphrases) on involved machines along the route.

Anyway, the default simple Capistrano deployment procedure documented on their site sucks - it's slow and INSECURE. I didn't realize this until I started wondering why the /var/www/ourapp/releases/* folders were so huge. I realized that they had .svn subfolders... yes, that's right, not only does the default Capistrano setup pull your FULL set of sources from your repository on every deploy, it does a CHECKOUT rather than an EXPORT. This means people can access http://joor.0wned.org/.svn/* files, which leaks information. Oops.

Solution: install the capistrano_rsync_with_remote_cache gem, which does svn checkout (and after that, svn update) to a .rsync_cache folder on the machine you're running the deployment script from, and then does rsync to the servers you're deploying to. This part fixes the slowness, by only transferring the modifications to the server. This STILL transfers the .svn folders, though, until you add the following line to your deployment config file: "set :rsync_options, '-az --delete --exclude=.svn --delete-excluded'" - presto, fast and safe deploys.

It scares me a bit that the defaults are so retarded, and that there's no mention of this on the main site... google was very helpful once I discovered the .svn folders, though, and it took around 20 minutes from beginning researching the problem until the fix was in place and tested :)
2031
Living Room / Re: Freezing BIOS even - any ideas why?
« Last post by f0dder on November 24, 2010, 04:49 PM »
Got a client with a computer that freezes - even to the point of not allowing a forced switch off by holding the power button.
Wow, don't think I've ever seen that before, even with pretty fubar boxes O_o
2032
Living Room / Re: Who else is sick of difficult word verifications on the web?
« Last post by f0dder on November 24, 2010, 10:15 AM »
...the first thing you should notice about this is that it has clearly been designed to be almost impossible to crack, by someone who knows nothing about cracking captchas.
Hahaha, wonderful quote :D

I hope at least the person designing the captcha had fun.
2033
General Software Discussion / Re: Linux webserver du jour?
« Last post by f0dder on November 24, 2010, 05:33 AM »
@fodder: ever think of writing up what you're doing and submitting it to HTF?
Considering it - I'll be documenting the process for the report anyway, and I'm taking notes as I go along (this thread is part of the notes :P).

You've definitely got the technical know-how and language skills to show others the way if you don't mind sharing.
Thanks :)
2034
Living Room / Re: Who else is sick of difficult word verifications on the web?
« Last post by f0dder on November 24, 2010, 02:12 AM »
Lately, I'm getting sick of just about everything on the web.  :-\

Anybody else starting to feel like that?
s/on/in, s/web/world :)
2035
General Software Discussion / Re: Linux webserver du jour?
« Last post by f0dder on November 23, 2010, 08:27 AM »
Thanks for the link, 40hz, I'll be sure to check it out next time I'm frustrated :)

Getting nginx+passenger running was super smooth. I then proceeded spending the rest of the day doing a few benchmarks (it's good; the major bottleneck now is our Google Maps calls, which we probably can't do much about), fixing up some of my webclient code, bugfixing a bit of my mates' RoR code after hunting ghosts in my code, and then cursing and being close to smash my head in the wall because normal requests went GZIP'ed just fine, while my webservice requests didn't.

Long story short: nginx peculiarity combined with a bug in .NET HttpWebRequest when using HTTP authentication - yummy. Workaround, which also removes an unnecessary server roundtrip: don't use HttpWebRequest.Credentials, but add the HTTP Request "Authorization:" field manually.
2036
General Software Discussion / Re: Linux webserver du jour?
« Last post by f0dder on November 23, 2010, 03:07 AM »
There, nginx+passenger installed. There isn't any ready-made Debian package for nginx with passenger support, and nginx modules have to be built at compile-time... so no sweet auto-binary-install option, instead you use passenger's "build nginx with passenger support" auto buildscript. I generally don't like building from source (except on gentoo, where build-from-source is part of the package management system) - simply because it makes upgrading a bit of a hassle. But the procedure was painless, and after adding six lines of config to nginx.conf, our Rails app is up-and-running.

I still need to fix the /etc/init.d/nginx script and make sure it's added to system startup, something that'd have been pretty automagic if using a normal Debian package install, but I'll live.

Observations so far:
  • The "bad gateway" and "missing port" bugs I experienced with Cherokee are gone.
  • nginx seems more capable at caching - for some reason, Rails (or whatever part of the stack) inserts "?number" for javascript URLs, which kept Cherokee (at least with default conf) from caching.
  • Things fly now, probably thanks to both the caching mentioned above, and Passenger's optimizations.

Next up might be adding Ruby Enterprise Edition to the mix, and I've been recommended looking at Capistrano - that's probably overkill for our app since it's not distributed across multiple machines and probably never will need to be... but I'll check it out nonetheless :)
2037
General Software Discussion / Re: Linux webserver du jour?
« Last post by f0dder on November 23, 2010, 02:10 AM »
If memory serves me right, I believe that 40Hz many moons ago mentioned bitnami that will get you completely configured development environments in the shape of a simple installation file. And guess what, Ruby is among them.
Thanks for the link, but I dunno if a package like that is for me - probably a decent thing for getting a development environment up and running quickly, but for the VPS we're deploying to I'm "stuck" with debian - it's not that bad installing stuff (and configuring it) once you have a clue what you're supposed to installed & configure :)

nginx is not documented well, it seems. Is there any comprehensive list of available modules?
The website definitely lacks a lot - one of the reasons I checkout out Cherokee before nginx. We'll see how bad it is once I get it installed :)
2038
General Software Discussion / Re: Linux webserver du jour?
« Last post by f0dder on November 22, 2010, 12:12 PM »
Ok, so Cherokee is a nice product and I really like it's config section, but I ran into a bug that apparently hasn't been fixed yet. Short story: host is accessed via a SSH tunnel and /etc/hosts magic - so I connect to "http://myapp.local:4200" on my laptop, which is SSH tunneled to the test-server's own port 80. On HTTP 302 (redirect), the custom port is stripped from the Location response header, which means stuff obviously ends up not working.

Also, Cherokee's default setup of starting an appserver interpreter on demand means that the first time an instance is after server restart, you get a "502 bad gateway" HTTP error. This can be fixed with Cherokee by starting the appserver elsewhere, it's just the default way of doing things that is bad.

I'll check out nginx+passenger now - thanks for the suggestion, JavaJones. It's one of the combos I already saw mentioned elsewhere (and has just been recommended from yet another party), so I guess it's time to give it a try. I'll keep you posted with my results :)
2039
General Software Discussion / Re: Advice Needed: Optical Storage
« Last post by f0dder on November 22, 2010, 09:52 AM »
Splitting the files and being able to run setup from one disc and prompt from the next is - generally - not going to work. Might get it working for specific stuff if you can find tools for the specific installer used, but I wouldn't get my hopes up. Your general best bet is simply to use an archiver to do compression+split. Sucks having to decompress to HDD first, but it's the only thing I've found to work reliably.

This is also one of the reasons I ditched optical media a few years ago, it simply sucks in just about every way compared to external HDD storage. Might be slightly cheaper, but that's their only saving grace.
2040
General Software Discussion / Re: Linux webserver du jour?
« Last post by f0dder on November 20, 2010, 05:26 PM »
Why is it that nothing on linux is ever easy or transparent? :)

So, ignoring httpd-specific modules, it seems that there's basically two ways of running ruby apps from a webserver: with a (fast)cgi process, or some ruby-specific httpd (which means the "main" httpd will basically run as a proxy for this backend).

When adding a Cherokee RoR vhost, it sets up a pool of three handlers ("sources"), each running on a separate port. Each is started as "/var/www/appname/script/server -p portnum". So far, so good - this isn't generated by default and I'm not sure just what to put there...

I've been looking around trying to figure which "glue" to use. So far it seems that Thin might be a good choice, but I'm really not sure. The whole ruby stack honestly confuses me, and there's apparently a lot of choices. A single Thin daemon, a cluster of mongrels, the (standard?) test-while-developing WEBrick, et cetera.

Tested the Thin thingy by simply doing a "thin start" in the rails app root folder, and it seems to work like a perfect drop-in replacement for the standard webrick, I can access the app on the default port 3000 - yay. Haven't set up the 'server' script properly yet, but have manually started a Thin instance running on the port defined in the Cherokee setup. Seems to work; there's some issues wrt. redirecting not-logged-in users (port number is stripped from URL, which it isn't when connecting directly to Thin), but apart from that stuff seems to work. Unfortunately, it seems like my desktop-client JSON calls still aren't gzip'ed, but at least the response headers show I'm getting data from Cherokee and not directly from Thin - so it should be possible to get gzip further down the road.

Might eventually end up with a nicely running system, but this is so darn typical of my experience with linux systems: poor documentation, outdated how-tos, and a lot of manual work for stuff that plainly ought to "just work". This bitching is directed towards the ruby/rails stuff, btw, Cherokee seems like a decent product.

2041
General Software Discussion / Re: Linux webserver du jour?
« Last post by f0dder on November 20, 2010, 03:27 PM »
I've been checking out Cherokee, and so far it seems pretty nice - it frustrated me for a while that it seemed to totally ignore vhost setup, until I found out I have to hit "save" in the toolbar - d'oh :-[. The admin interface is definitely pretty comfortable.

Can't figure out what I need to do to get a RoR setup going, though. I've tried following their cookbook, which seems extremely simple and easy to follow - but my rails version (3.0.3) doesn't have a 'scripts/server' script, which Cherokee expects. I've seen "rake rails:update:generate_dispatchers" mentioned somewhere, but rake doesn't know how to build that.

Dunno if I need to install some ruby appserver or something, but I'll do a bit more digging :)
2042
General Software Discussion / Re: Linux webserver du jour?
« Last post by f0dder on November 20, 2010, 11:46 AM »
2043
General Software Discussion / Re: Linux webserver du jour?
« Last post by f0dder on November 20, 2010, 11:10 AM »
Oh, alternative suggestions!

Have you played with other webservers before? It'd be nice hearing why you explicitly chose Cherokee. Is it easy to configure? Got any tips for setting it up for Ruby (specifically RoR) apps?

I've also stumbled across Hiawata and nginx, and heard mentions that lighttpd have unfixed memory leaks. There's so much to investigate, *sigh* :)
2044
Developer's Corner / Re: .NET/VS 2008 Debugger question
« Last post by f0dder on November 20, 2010, 10:55 AM »
So would that give any less veracity to the answer?  Or is that just something that should be noted on the answer?
The rest of the answer sounds pretty good to me - but it'd still be nice to see what one of the language experts has to say :)
2045
Developer's Corner / Re: .NET/VS 2008 Debugger question
« Last post by f0dder on November 20, 2010, 04:19 AM »
This is why value of changedRows is preserved, even though, according to language rules, it must be destroyed (when it goes out of scope) and created again (when it is declared).
Nit-picking: the language rules don't say the object must be destroyed when it goes out of scope - but when there's no more references to it. And because .NET uses a tracing GC, it furthermore doesn't guarantee this happens as soon as the last reference is removed, but "at whatever time the systems believes it's right to take out the trash".

This is why finalizers in C# are pretty much useless for anything but "Uh oh, moron, you forgot to Dispose" diagnostics :)
2046
Developer's Corner / Re: .NET/VS 2008 Debugger question
« Last post by f0dder on November 19, 2010, 05:56 PM »
I don't know enough to answer the question at the language level, but as I'm sure you know, block scope and object lifetime don't have much to do with eachother in .NET. So it's perfectly valid for the object to be alive - perhaps it's even because of the debugger holding a reference it's not getting GC'ed?

But I'd definitely not expect the debugger to show the variable in 'locals' before it's in scope (the same goes for 'watch') - but perhaps there's something tricky about .NET variable scope?

You might want to make a StackOverflow post on this and hope John Skeet or somebody can come up with a good answer :) - and if you do, please post a link here.
2047
General Software Discussion / Re: Why the aversion to .NET Frameworks?
« Last post by f0dder on November 19, 2010, 11:39 AM »
C# really was much closer to VB than to C. I am not talking about syntax, but about the mindset and concepts used.
Care to explain? I've done C, C++, Java, C# and (tiny amounts of) VB - and I see C# and Java sharing a lot, having C++ legacy... and can't identify VB in C#.

Do the later C# versions support multiple base classes? I stopped watching.
No, it doesn't support Multiple Inheritance, and hopefully won't. For the cases where MI would be sane in C++, you use interfaces (and possibly composition) in modern languages.
2048
Living Room / Re: Fake Coffee Shop in China (NSFW) (Can you guess?)
« Last post by f0dder on November 19, 2010, 01:54 AM »
Fun :D
2049
General Software Discussion / Re: Why the aversion to .NET Frameworks?
« Last post by f0dder on November 19, 2010, 01:53 AM »
The hostility towards VB is... probably because the entry barrier is so low. Too many people who shouldn't be programming
There's more to it than that. If that were it, there would be just as much or even more disgust for PHP.
There should be! ;) (it's possible to write decent stuff in PHP, but there's ugly stuff in the language, and the standard library is a complete messy hackjob).

It's part of it, but there's more to it than just that. The barrier for PHP is even lower.
The barrier for PHP lower? I don't agree. You do need to write a bit of code & HTML to get anywhere with PHP - with VB, you just drag stuff onto a form.
2050
General Software Discussion / Re: Linux webserver du jour?
« Last post by f0dder on November 18, 2010, 04:30 PM »
Can't really comment on the ramifications for Ruby. (I just declined to get involved in a Ruby based project a short while ago and have very little knowledge about how that language/framework operates.)
Relatively rapid development (as long as you follow The True Path), pretty slow execution :)

I'll wait a bit and see if there's other comments (we have about a month before finaly deployment has to be done), but I'll likely end up with lighttpd.
Pages: prev1 ... 77 78 79 80 81 [82] 83 84 85 86 87 ... 364next