Here is the updated version of my [previous authenticating/forwarding Squid 3 config](http://nongraphical.com/2008/09/squid-3-proxy-chaining/). It adds some things and fixes some things. In particular, the peer exclusion rules from the previous config were not working - this one should correctly *not use* the parent proxies when querying “local addresses”. As before, the configuration file contains two proxy servers for load balancing; it can be extended easily to include more. Read more…
[Download RemoveDuplicates.py][dl]
[dl]: http://nongraphical.com/media/uploads/RemoveDuplicates.py
One of the problems with using hybrid Windows and Linux environments is that one needs to watch closely for filesystem and file anomalies and inconsistencies. Differing end-of-line markers, for example, cause many problems when sharing files between the two operating systems. One particular problem I’ve run into is that of having duplicate files, or in other words, multiple files with the same filename. This can happen if, say, you copy a directory somewhere in Windows, then switch to Linux and use a tool such as rsync to copy that same directory over again. If the capitalization is different, Linux will not replace the old files, because Linux, unlike Windows, is case-sensitive. This will even happen, and is technically acceptable, on NTFS filesystems.
The solution I’ve come up with is this simple script, called RemoveDuplicates.py. Obviously, you need [Python][py] installed to run it, but it has no additional dependencies. Simply run it *in the directory you wish to clean*, and it should do the rest. Note that you shouldn’t use this for entire filesystems (yet), because it will use ridiculous amounts of memory if it is given a high number of files. [Download it here][dl]!
[py]: http://www.python.org/
P.S. Also, I cannot guarantee that this tool will work as intended or will be bug-free. Use wisely.
Hello, fellow programmers! I’ll be posting useful information, practice, tutorials, resources, and all other things vaguely programming-related here. Soon there will be posted a general outline of what’s going to be happening this year, but for now, just let me say that we’ll be working mainly with web applications and web development. It should be pretty apparent from reading recent technology news that the IT world is focused on two main trends right now: web apps and the eventual “web desktop,” and of course server virtualization. Suffice it to say that, after you’re through with this year’s programming club, you should have a very workable basic understanding of how the Internet works and how to write applications that are web-accessible.
So with that said, our concrete goal for the moment is to become relatively fluent in HTML and CSS. We won’t learn too much, just enough to understand how it all works and how to make it work for us. These two languages will enable us to create decent-looking web pages and will also provide the presentation layer of our later web development work.
Stay tuned for more information. I find this all rather exciting, and I hope you guys do too!
Filed under:
Articlesfyhuang @ September 13, 2008 9:41 pm
My school uses an NTLM-authenticating proxy server, and this causes problems with lots of applications which don’t support proxy servers. Many, many solutions have been proposed to this problem, but I’ll focus on one that I find particularly appealing: setting up a non-authenticating personal proxy server which forwards requests to the main proxy server.
**Update: use the [new version of this config file][newconfig] - it works better.**
[newconfig]: http://nongraphical.com/2008/11/updated-squid-3-configuration/
Read more…
So here it is, finally: the legendary [Google browser][chromeurl].
[chromeurl]: http://www.google.com/chrome
And like everything else that Google puts out, it is a gloriously incredible piece of work. It has the best characteristics a piece of software could have: it’s simple, fast, responsive, and stable. I’ve been running it for just a little while now, and while WebKit’s rendering (especially of fonts) is slightly different from Gecko’s, everything works just about the same as in Firefox… it’s all just way, way faster. Opening new tabs is faster. Using Gmail is faster (thanks, no doubt, to the new V8 JavaScript engine). Writing posts is faster. It’s really quite incredible… in fact, possibly one of the most impressive open-source developments to date, right up there with Firefox 1 and the Linux kernel. [Give it a spin yourself and see][chromeurl].