[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.
Some of the stuff that Logitech has been putting out recently is certifiably gimmicky. For example, the *wireless* trackball mice ([Cordless Trackman Optical][cto]) that Logitech makes. The whole point of a trackball is that it *stays put* on your desk: only the ball moves! Why, then, is it made wireless? Wireless mice are cool because the cord doesn’t get in the way when it moves along with the mouse, but the trackball base doesn’t move! Logitech’s site even calls the wireless feature “convenient” - I personally don’t think that needing to change batteries for a feature that the device doesn’t require is convenient.
[cto]: http://www.logitech.com/index.cfm/mice_pointers/trackballs/devices/189&cl=us,en
One more seemingly-useless Logitech feature: the G15 keyboard’s LCD. Gamers that would buy the G15 keyboard - most likely MMO players and, to a lesser extent, FPS players. The G15’s most outstanding feature is its plethora of assignable macro keys, which makes it wonderful for, say, WoW. Why, though, would you look down from the game on your monitor to check some dimly-lit stats on your keyboard LCD? Seems pointless to me.
Don’t get me wrong: Logitech is a wonderful peripheral company. They make what I consider to be the world’s best general-purpose mice (Dell’s basic USB mouse included with their desktops, my personal favorite, was[^1] made by Logitech). They make relatively good, usable keyboards, sometimes with a touch of my preferred minimalistic style (DiNovo Edge). And, despite arguments between Logitech, Razer, and now Microsoft users about which gaming mouse is the *best*, there’s no doubt that Logitech’s, especially the G5, are among the top gaming mice available. It’s just that nobody really wants to spend extra money buying features that are completely unnecessary.
[^1]: I’m not entirely sure that it is anymore; I don’t have this information.
My current question is this: why are there few (if any!) casual/party multiplayer games for the PC? I’ve been looking around for games that might appeal to more than just me and my hardcore gaming friends, in a (perhaps vain) attempt to create social gatherings through video games/LAN parties. Because everyone here at school has a computer, and networking is already very-well taken care of, it’s definitely very plausible. The only things missing now are the games.
Read more…
Filed under:
Projectsfyhuang @ September 25, 2008 1:04 pm
I have been having, to put it lightly, some problems with VMware server and an Ubuntu guest. My guess as to why is this: VMware server is, in my eyes, built for production-level server virtualization. It’s not really built for on-the-side home server virtualization, like the kind that I’m doing, and on fairly desktop-oriented hardware to boot. Basically, my Ubuntu install often has trouble with disk access, and sometimes network access as well. (I’m running a Vista Home Premium host with an Ubuntu Server 8.04 guest.)
Read more…
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…
Filed under:
Articlesfyhuang @ September 5, 2008 1:42 pm
I found today that I was having problems launching Call of Duty 2 on Windows Vista. I could not start either the single or multiplayer: both would crash and the Vista “this program has stopped working” dialog box would pop up. A quick search on the Internets told me that this was definitely a common problem, and with the help of some pretty obscure forum posts, I finally figured it out. I’m going to summarize my solution here for future reference:
**System environment:**
* nVidia graphics card
* Windows Vista Home Premium 32-bit
* 2 GB RAM
* Integrated “HD” audio
**The solution for me:**
0. **Remember to set CoD2 to compatibility mode with Windows XP SP2!** You can do this by right-clicking the shortcut and selecting “Properties”, then opening the “Compatibility” tab at the top.
1. First tried updating DirectX 9. Vista users should note that DirectX 9 and DirectX 10, while both coming pre-installed on Vista, are *separate components*. You should still update to the latest DirectX 9 even if you have DirectX 10. Unfortunately, while a good first step, this didn’t work for me.
2. Then, added “+set com_introplayed 1” to the end of the shortcuts. You can do this by opening the shortcut properties (see step 0) and adding those characters, without quotes, to the end of the “Target:” box, so that the full line looks like:
“C:\Program Files\Activision\Call of Duty 2\cod2sp_s.exe” +set com_introplayed 1
This fixed the single-player for me, but I still could not open multiplayer.
3. I found on [NTcompatible.com][ntc] a seemingly-ridiculous little proposition. The poster suggested that, to run CoD2 multiplayer, one should **plug something in to the microphone jack**. So, I did, and lo and behold, it worked! Rather a strange solution, I do say. It likely has something to do with the interaction between my integrated audio and the voice chat features of CoD2, so turning off voice chat might allow it to run without a microphone plugged in.
[ntc]: http://www.ntcompatible.com/Call_Of_Duty_2_c12762.html
Anyways, that’s how *I* got this game to work on Vista; hope it helps somebody else too!
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].
Filed under:
Buildsfyhuang @ September 2, 2008 12:34 pm
I finally received my new motherboard and installed it into my computer. It runs quite well, quite cool, and very quiet. Here’s the final details on the quiet cooling system:
**Fans/airflow:**
* 2 x quiet 60mm fans behind the CPU cooler
* 1 x SilenX 60mm fan next to video card, doubles as case exhaust
* 1 x 120mm fan in PSU, helps move air through CPU cooler
* 1 x Arctic Cooling 90mm PWM fan on other side of CPU cooler
**Heatsinks:**
* Thermaltake Big Typhoon (modified) on CPU (removed fan and fan mount)
* Arctic Cooling Accelero S2 on video card
* Tuniq Sanctum hard drive silencer/cooler
Effectiveness? CPU temperatures at 37-40 degrees C at idle. Not too shabby, I suppose. I’m planning to use (and already using) this machine for some serious computer work, including 3D programming and graphics. I’ve actually recently installed Visual C# 2008 Express Edition, and I’m finding C# (and Microsoft’s IDE) to be an incredibly powerful and intuitive language. I think I might switch to using C# indefinitely, until someone writes a decently simple and powerful IDE for [D][dsite], my cross-platform language of choice. Oh, and fix X11 and give us *one* windowing toolkit that works and has amazing graphical tools while you’re at it, please?
[dsite]: http://www.digitalmars.com/d/
I’m also running VMware server (and having lots of problems with that…) with an Ubuntu 8.04 Server guest, to handle my requisite Apache and MySQL stuff, and also to keep up with the very few Linux-only softwares I use.
Something I discovered today: [DDvorak][dd], a keyboard layout loosely based on Dvorak which caters specifically to developers or programmers. There’s a [layout tester][lt] on the same site that measures the overall efficiency of various typing layouts with any text that you choose.
[dd]: http://www.siteuri.ro/dvorak/DDvorak.aspx
[lt]: http://www.siteuri.ro/dvorak/
DDvorak, on first glance, is a completely unorthodox typing layout. It requires comma as a dead key for many symbols, and AltGr as a modifier for many others. Additionally, many things are moved to unconventional locations (BackSpace is where ‘B’ is on QWERTY keyboards, for example). However, the [layout tester][lt] consistently measures the efficiency of DDvorak as significantly higher than either Dvorak or [Colemak][cm], no matter whether typing English or code.
[cm]: http://colemak.com/
I think I’m going to have to give DDvorak a try, soon, if only I could figure out how to radically change keyboard layouts in X.org… of course, it’s easy with [Windows][msklc]. It wouldn’t be Windows if there weren’t a tool for everything.
[msklc]: http://www.microsoft.com/globaldev/tools/msklc.mspx
Tags: