Jump to content

CoffeeFiend

Patron
  • Posts

    4,973
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    Canada

Everything posted by CoffeeFiend

  1. Absolute nonsense. You're saying we should write obsolescent batch files (as if it was still 1985), just because a archaic shell is actually able to delete files? We should waste countless hours of our precious time so we can save on a minuscule fraction of a single penny worth of disk space? Every single time you'd install any new app or even just a new version of an app (every other day or just about), you'd have to waste a lot of time seeing where it may create any kind of junk files (a colossal waste of time) whereas a cleaner app already has other people wasting their time so you don't have to waste yours (and they usually do a much better job of it too), and then manually updating it on all your computers (cleaner apps auto-update in one click, no need to copy stuff by hand), it will always miss a LOT of really nice and/or important features such as cleaning MRUs from the registry or jump lists, previewing what will be deleted and how much space would be freed, being able to quickly select or deselect some stuff you may want to clean or not this particular time with one click (checkboxes) which is very handy, the lack of an "undo" feature, dealing sanely with different versions of OS'es (XP/Vista/7 -- both x86 and x64) from different locales that store stuff in different places (especially if you keep in mind things like filesystem virtualization, or even just ealing with things like randomly-named Firefox profiles) and also providing a localized GUI for it too, sane integration with the OS like an actual GUI (eye candy is always nice) or being accessible from a right click on the recycle bin, automatically popping up a UAC dialog if necessary (to clean stuff that needs this level of access) and so on, a decent installer and uninstaller, etc. Batch files have NOTHING on any single cleaner app I've ever used. I've stopped living in the past and no more waste my time over this pointless endeavor. Very much like why I use Photoshop despite mspaint having been there for decades, or why I use notepad++ despite notepad (and edit.com until recently) having been there for decades and so on: the new apps are FAR better in every way. If anything, you just showed that it's outdated and not exactly great. Which just goes to show how little it has in terms of portability, versatility, reuse, etc. Cleaner apps will auto-detect your installed apps regardless, and will work on any PC. With a batch file, you'll essentially be maintaining different batch files for every single PC (workload decupled...) Which only goes to show it requires a lot of (error prone) hard work *and* that you can easily miss basic stuff -- whereas with nice apps, that was already done for you ages ago (comodo privacy cleaner auto-selects deleting flash cookies *and* the cache)
  2. Try this list (every socket 775 CPU, ordered by price) Those or the Phenom II X4's won't fit on your current motherboard. What I meant is, beyond something like a Pentium E6800 or so, you're just paying a lot more for not too much extra performance. At which point you might as well get something more "modern" (socket 775 was replaced 2 years ago, and will be once more sometime soon). That would require a new motherboard as well (and perhaps new RAM too, depending) so more $, but at least there are real performance gains to be had over the E6800, unlike the pricier socket 775 offerings (e.g. a $185 Phenom II X4 970 which is faster than the most high end Socket 775 offering: the $275 Core 2 Quad Q9550, or then again the $230 Phenom II X6 1090T which is almost 50% faster than the Q9550 for nearly $50 less) Upgrading to a Pentium E6800 is pretty much just that. Drop the new CPU in, put the new heat sink on, and restart the computer. Everything should be automatically detected. That's about the highest thing you can still get for that computer without really wasting your money (a final upgrade, pretty much)
  3. Your computer has a Intel G33 Express chipset. You could upgrade to just about any Core 2 Duo or Core 2 Quad (not that there's a Core 2 Quad worth buying) and Pentium Dual Cores (they're basically C2D's) and the new Celerons based on the C2D as well. Just about anything that uses Socket 775. A Pentium E6700 or E6800 would give you a pretty nice boost (not quite double the speed) around the $85-$100 price range.The other dual cores at a lot pricier and not a whole lot faster (e.g. the E8500 at almost $200 that's clocked slower but has a bit more cache, and is almost no faster). And Core 2 Quads are WAY overpriced for what they are (at that point, you might as well get something else, like a Core i5 or a Phenom II X4)
  4. It would be fairly trivial to write a quick vscript that does precisely this and more. It would take like 5 minutes. Or we could even write even a C# app using the Ping class from the System.Net.NetworkInformation namespace in not much longer (but that can very easily become a significant undertaking as you add features). But why bother when there's already dozens of such things all over the internet available for free such as FREEping and peermonitor (Google will find plenty more). There likely several open source apps to do that too. It's trivial to write, but why reinvent the wheel when there's plenty of existing apps for this?
  5. Perhaps it indeed isn't the type of forum you think this is. There is NO piracy going on here. Every single member of the mod team will promptly ban anyone who posts that kind of stuff around here. I wouldn't personally use DeepFreeze even if it was free (or built in to the OS, or even open source), but you're perfectly entitled to like it.
  6. It looks like it's half fixed now. The login on the forum front page still doesn't work, but now I don't have to re-login every single time I visit.
  7. Same using Firefox 3.6.12 on Win7 x64, and even with a brand new user profile.
  8. Pointless IMO. A batch file was a half-decent way to do this at some point, like 10 or 15 years ago (pretty much everybody did it this way back then). Now there's FAR better tools readily available for free, like CCleaner or Comodo System Cleaner or nCleaner or fcleaner and probably several others. They all do this stuff and more, have a good looking & easy to use GUI (which also makes it easy to opt-out/in of certain stuff, or preview changes), it will run in 2 clicks whenever you want (or automated/on startup if you opt-in), they also clean a whole lot of other junk (like MRU entries and jump lists -- not the pinned items of course), they automatically detect dozens of popular apps and cleans what those leave behind too... And you don't have to maintain anything, the updates take care of that. Batch files are best left where they belong: the past.
  9. They've got the IMAP option. I couldn't care less about that myself. Everything I do in Outlook would have to go through our exchange server anyway (nevermind the shared folders missing and tons of stuff -- totally different mentalities/uses) They've already (horribly) failed twice at this (jabber and wave)
  10. The vast majority of games are mainly written in C++ (the core at least). Then there's often some bits and pieces making use of scripting languages like LUA. The main exception being online games which are mainly flash/actionscript based.
  11. There is no universal answer to this. There's just too many criterias one can judge by. My fav 2 manufacturers, when it comes to mid to high end desktop boards are Gigabyte and ASUS, with preference towards Gigabyte. But I do buy ASUS boards when there's a great deal on them. ASUS is nice, and they have some stuff you don't typically find on Gigabyte boards (none that I remember at least), like being able to update the BIOS directly using a USB stick instead of using a 1980's era DOS boot disk. But IMO Gigabyte has better boards. Their software mostly ties with ASUS (doesn't have the USB BIOS updater, but usually has its SMBIOS tables filled better, etc). But the real difference shows when you look at the actual hardware. Gigabyte tends to be nicer. They have a nicer voltage regulator -- they've been pioneering many significant changes there for a number of years such as using solid polymer caps and fancier multi-phase designs that can turn phases on or off, much like they were among the first to offer 2oz PCBs. I have yet to see a better quality board from anybody else. They often end up having the board that's closest to what I'm looking for too (feature-wise), although ASUS is usually a close second. There's a LOT of factors to keep in mind when you pick a board (besides cost obviously), like stability, features like USB3, SATA 6Gbps, a nicer chipset, nicer set of ports, extra memory slots, extra PCI-e slots (...), good layout, good cooling, good warranty, good support (BIOS updates for one thing), ... Beyond those two, there's plenty of others which I would group in 4 main categories: 1) still high quality (kind of like ASUS and Gigabyte) but very much aimed towards an enthusiast market. Those companies often offer very few models, they tend to be very expensive, and often not offer a whole lot more (over say, ASUS and Gigabyte boards) besides fancy colors and perhaps a couple extra BIOS options. Here you find companies like DFI (haven't looked at their offerings in ages mind you) 2) the pretty good quality ones. Not as nice as the previous, but aimed at a more "budget" oriented user. No major complaints, they just tend to deliver a bit less of those nice features, but for a bit less $. Read: MSI and the likes. 3) The OK manufacturers. Your PC turns on and you can do stuff. Loads of no-frills, cheap mATX boards. Foxconn and the like. 4) The not-so-great manufacturers. Some companies have historically been making less than stellar boards... Likely because they're the ones you've worked with the most. Honestly, I rate their hardware a solid "meh". Thoroughly unimpressive. "Just OK" hardware combined with a BIOS that is pretty bare bones, an anemic selection of boards and that is for Intel CPUs only (of course, but that's still a huge limitation CPU/chipset-wise), they often have onboard video -- the sucky kind (Intel HD) that's just barely adequate for the minimum you can do (in this day of Aero Glass, mainstream OpenGL-accelerated apps, etc -- yet now even requires paying extra for a CPU that includes it), they just don't have any boards with a great feature set (just find me a socket 1156 board with 2 PCI-e x16 slots? None? Ok then, find me one with USB3 ports. Still none? Ok. How about one with a 6Gbps SATA port for a SSD? ...) and they're kind of overpriced for what they are. Name any Intel desktop board and I'll easily come up with something nicer at the same price point (within $10) from other manufacturers. Even if I was looking for a "just OK" board, there's plenty of others I'd pick well before that.
  12. Instead of doing a copy-paste job or essentially re-writing the same thing but in other words, I'm just going to link to this.
  13. Check the patent applications like this. That along with 7-zip's source should pretty much cover it all. Look into \CPP\7zip\Archive\Wim. Feel free to even run it inside Visual Studio and single-step through the relevant parts of the WIM-reading code.
  14. Read the forum rules already: no homework. You were already warned about this, so consider this your final warning. Not that I would expect someone finishing their BCompSc (like your other topic seems to suggest) needing help for such simple stuff... despite the extensive documentation on MSDN and sample code all over the place. Closed.
  15. I know it's a joke but even though I think it's still the best PDF app it's hardly perfect. Yes, Acrobat is quite expensive for one thing, but even worse than that is that Acrobat and reader totally don't match their other apps in terms of interface or keyboard shortcuts. It's maddening. For example, even just the zoom tool. In Photoshop, Illustrator, InDesign, etc you can just press Z to get select the said tool. In acrobat? Well, that does absolutely nothing (oh, that's right, "Use single-key accelerators to access tools" is unchecked by default... seriously?). There is no way to remap keyboard shortcuts either. The "main" toolbar is totally unlike the others too (not feature rich, not the same location, doesn't work the same, etc) There are no workspaces either... and the list goes on. I also have to resort to opening PDFs with Illustrator (page by page no less) quite often to make some changes. I'm just hoping Acrobat X will be significantly improved. Not sure if that will really be the case, but most likely it'll include some new and useful features that won't be well supported (if at all) by other programs. It almost doesn't feel like an Adobe app, and by itself it has FAR more bugs, glitches, quirks and security issues than Photoshop + Illustrator + InDesign + Bridge + Camera Raw combined. It's also a pain to automatically apply updates to it. And I can't stand its browser plugins either (I disable them all). It's my least favorite Adobe app out of all those I actually use. Yet, it's still the better tool for PDFs by a LONG shot, which is kind of unsurprising as PDF is Adobe's format. All of the other PDF apps I've tried were no better in any significant way, or when they had a slight edge on something (and usually the main one is "how fast can a PDF open on a Pentium 3?" which is pointless for me) they were clearly far behind in several other areas, so I settled for the one that just works, for everything, all of the time (who likes fighting with their documents, then trying a dozen sub-par apps, each with a different set of show-stopper problems?). I can afford the extra 5MB of RAM overhead it has...
  16. Eluveitie - Slanias Song \m/
  17. There's many ways to skin a cat (it's just another way to copy files than I used, and there are some more too e.g. using WMI). I still think there would be a better way (not involving a batch + a vbscript), but seemingly you're happy with this anyway, and since I still don't know what it's meant to do (as in, the big picture) I can't really come up with anything else either.
  18. Why ask if it's worth buying after actually buying it? So $175, plus the video card, plus at least some extra RAM to make it perform half-decently (at least 1GB extra, so about $20 more). Let's say $200. For that much, you could have bought something else that's not bad at all if you find some good deals. For example, NCIX had on a half-decent combo (assuming you even need a quad core in the first place): AMD Phenom II x4 900E Processor AM3 2.4GHZ 8MB Cache 65W 45NM OEM (a pretty decent quad core) along with: MSI 770-G45 ATX AM3 770 DDR3 CrossFire 2XPCI-E16 PCI-E 3XPCI SATA2 RAID GBLAN Audio Motherboard; featuring 4x DDR3 slots, two PCI-e 2.0 x16 slots... for $139.99 Add 2GB of DDR3 for ~$40 This still leaves you with $20 going for a video card, like a $60 Powercolor Radeon 4850. So that would have been about $40 (CAD, not USD) extra overall, but it would have a modern socket & chipset, use DDR3, have two PCI-e x16 slots, a very nice video card (would run just about any game on max settings on your 19" LCD) and all. Or substitute the 4850 for a GT 210 (not for gaming) and you're at $205 and still have something quite a bit nicer. Or perhaps, their Core i3 530 2.93GHZ CPU + MSI H55M-E33 DDR3 combo, with 2GB of DDR3, for $200 total. Better performing CPU for most tasks (far faster single threaded perf), it has a 1156 socket, a modern H55 chipset, uses DDR3, has better onboard video and has a PCI-e x16 slot... Lots of possibilities here, even on a small budget. In both cases, you'd also save later on when you want to upgrade (more recent sockets & RAM with better availability and prices), and you get far better video too (you can actually play all the latest games, have hardware acceleration of H.264 videos, etc). Anyway. I'm not sure what the question is at this point anymore.
  19. How much would that cost? It could be an incredible deal, or not a deal at all. Either ways, I'm not so sure you're saving by buying a system like this (again, unless it's a crazy good deal). You're getting a quad core (which is most likely more than you'll need), but with so little RAM (1GB? seriously...) and a very low end video card (it gets beaten quite a bit by cheapo onboard video from ANY new board out there) And about upgrading the video card? Well, too bad, you just can't. Unless you find something that fits in a plain old PCI (not express) slot. This only has one PCI-e slot, and it's a x8. The rest consist of a PCI-X slot (it's a server board -- without any of its benefits though), and a bunch of older PCI slots. So the best video card you'll find will probably be a not exactly great nor cheap. If you want something at least as good as modern onboard video, Newegg's main 2 options are: PowerColor AP4350 512MD2-H Radeon HD 4350 512MB 64-bit DDR2 PCI $83, not a whole lot faster than decent onboard video, passively cooled (forget about gaming for the most part). It's good enough for Aero Glass, older games and simple stuff but that's about it. Oh, and it has a decent set of outputs. or JATON VIDEO-498PCI-DLP GeForce 9500 GT 1GB 128-bit DDR2 PCI $92, somewhat faster but by no means a gamer's card, the cooler kinda sucks, no VGA or HDMI if you need one of those. But mainly, it's totally not worth $92 performance-wise. I mean, I bought a 4850 that runs in circles around that for $60... The board uses DDR2 which already costs more than DDR3 and whose costs are on the rise (making it a not-so-great upgrader; especially coupled with the old chipset and Socket 775). And it just might be ECC RAM on there too (more $, either to buy new ECC RAM, or throwing the old one away) It's using an older chipset (ICH7R) from 5 years ago. There's no USB3 or anything fancy of course. Going with a 19" monitor these days saves you just about nothing (you're just stuck with less of that precious screen real estate). My usual shopping place right now has a 22" LCD on for $115 CAD which is the same price as their absolute cheapest 19" LCD. Also, you're getting older hard drives. Slower, have a few years of mechanical wear, and not exactly big. These days 500GB'ers are only worth $50, and even 1TB HDs can be had for $70. Ideally, I'd want Win7 too, not Vista. Let us know what the asking price is, and unless it's an amazing deal, we'll pick parts for something better at the same price point (especially if we include the price for more RAM and a new video card!) Ideally you want a PCI-e x16 slot on there, a more recent socket (future proofing) and DDR3.
  20. I'm just wondering why you would do this -- have a batch file along with the vbscript. The vbscript can easily take care of everything the batch file does (renaming, deleting, changing attributes...) This stuff is trivial. At this point, what we need is to understand what gets copied where and so on properly -- basically what you're trying to accomplish. Right now I'm more or less lost as to where the icons and desktop.ini files are coming from and going to. There seems to be some working directory, a "folder marker" one, then the other destination folders... You copy some files manually in one of them, then tell a batch file to get them from there and then it copies them into another place (instead of just saving the icon there in the first place). Then you run the vbscript to recopy it again elsewhere? I just can't seem to grasp how it all works. I would help, but it's hard writing a script that does something you don't understand. You have made far more of an effort to describe it than most people normally do around here though, sorry I just can't make sense out of it. Setting that attribute shouldn't harm anything.
  21. Not that I would write the script this way (it tries to copy every arg passed both as a file and a folder), but it does preserve S & H attributes on files such as desktop.ini. However, that isn't enough for the OS to actually make use of the desktop.ini file i.e. custom icons are missing even if the proper file is copied in there (still with S & R set), even if it was copied by other means. You actually have to set the read only attribute on the folder for desktop.ini files to work, and that isn't copied over. There is no perfect solution to this. You could copy everything over, and then going on a hunt, parsing every single folder, enumerating files, looking for anything named desktop.ini (and other similar names) and if found setting the R attribute on its parent folder. Or you could blindly set it on every folder and all of its sub-folders. Or if you know there are no sub-folders with custom icons, then you can simply check the attributes of the folder you're copying and then set that after on the newly created folder in the destination, kinda like this: Option Explicit Dim fso, folder, attr, arg, i Const dst = "C:\Where\To\" 'must have the trailing backslash Set fso = CreateObject("Scripting.FileSystemObject") If WScript.Arguments.Count < 1 Then WScript.Quit For i = 0 to WScript.Arguments.Count - 1 arg = WScript.Arguments(i) If (fso.FileExists(arg)) Then fso.CopyFile arg, dst, true Else Set folder = fso.GetFolder(arg) attr = folder.Attributes fso.CopyFolder arg, dst, true Set folder = fso.GetFolder(dst + folder.Name) folder.Attributes = attr End If Next
  22. Not everyone is that much into hungarian notation (there's quite a bit of people against that; but yeah vbscript is untyped...) Using just "fso" is just as good IMO. I tend to heavily use "shorthand" names like "fso" or "wsh" in vbscript. It's still rather obvious what it is (you kind of have to know what it is to actually make use of it in the first place), and it's quicker to type (yes, I *am* lazy).
  23. Well, if you want a drop-in replacement, you could replace this tidbit from network.js function CheckForInternet() { position="network.js"; whatfunc="CheckForInternet()"; var oExec = WshShell.Exec('ping -n 1 74.25.155.99'); while (oExec.Status == 0) Pause(0,100); var Output = oExec.StdOut.ReadAll() + oExec.StdErr.ReadAll(); // if (Output.search("Reply from") > -1) // Not always in English??? if (Output.search("74.25.155.99:") > -1) ConnToNet=true; else ConnToNet=false; } by: function CheckForInternet() { position="network.js"; whatfunc="CheckForInternet()"; ConnToNet=false; var wmiSvc = GetObject("winmgmts:\\\\.\\root\\CIMV2"); var pingRes = wmiSvc.ExecQuery("Select * from Win32_PingStatus Where Address = 'google.com'"); var e = new Enumerator(pingRes); for (; !e.atEnd(); e.moveNext()) { var p = e.item(); if (p.StatusCode == 0) ConnToNet=true; } } Note: I have not tested this at all, so I would backup network.js first. You're welcome. Hopefully the bits above will work as-is. Either ways, I was wondering why you guys haven't setup a public repository for WPI (not sure if you're using a revision control at all). CodePlex has free Mercurial hosting (otherwise I believe sourceforge and google code also do). It's free, it works great, it's super fast, and it's easy to use (using TortoiseHG and VisualHG). One could've forked WPI (not in the traditional "forking" sense), cloned it locally, made their changes, committed their work and pushed to it, then sent you a pull request to let you know that this available (then you can opt to merge the changes with your version). In a few simple clicks you could have had these changes integrated in your latest development version (without giving a 3rd party write access to your repository). It would allow people to contribute fairly easily (I'm not saying there would necessarily be a lot of contributors though), easily get any version of any file, see what's changed, etc.
  24. It's the javascript function that's broken (yes, I downloaded WPI out of curiosity, just to check that): function CheckForInternet() { position="network.js"; whatfunc="CheckForInternet()"; var oExec = WshShell.Exec('ping -n 1 74.25.155.99'); while (oExec.Status == 0) Pause(0,100); var Output = oExec.StdOut.ReadAll() + oExec.StdErr.ReadAll(); // if (Output.search("Reply from") > -1) // Not always in English??? if (Output.search("74.25.155.99:") > -1) ConnToNet=true; else ConnToNet=false; } Parsing text is always error prone, especially when running on OS with different locales (languages & formats), and that the utils can sometimes yield unexpected error messages. But here it just blindly pings 74.25.155.99 (an arris status page that isn't guaranteed to always be up or anything), and checks ping's output for that same text ("74.25.155.99"), which will pretty much always be present on the very first line it outputs, regardless of the connection state, so it'll always return true. Unless you absolutely must be compatible with the ancient Win2k and earlier, the Win32_PingStatus WMI class is a far better/more robust approach, i.e. something like this: var seriesOfTubes = false; var wmiSvc = GetObject("winmgmts:\\\\.\\root\\CIMV2"); var pingRes = wmiSvc.ExecQuery("Select * from Win32_PingStatus Where Address = 'google.com'"); var e = new Enumerator(pingRes); for (; !e.atEnd(); e.moveNext()) { var p = e.item(); if (p.StatusCode == 0) seriesOfTubes = true; } WScript.Echo ((seriesoftubes) ? "We Has The Internets!" : ""); This just works, regardless of language/locale, and no unforeseen error messages will cause problems... so long as Google still exists.
  25. I'm not sure what you meant by the part preceding this (couldn't understand), but this specific part is rather trivial. This .reg file should add a "Move Up" entry (feel free to rename it) to all files and folders which does exactly that. Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\*\shell\mv] @="Move Up" [HKEY_CLASSES_ROOT\*\shell\mv\command] @="cmd.exe /c move \"%L\" .." [HKEY_CLASSES_ROOT\Directory\shell\mv] @="Move Up" [HKEY_CLASSES_ROOT\Directory\shell\mv\command] @="cmd.exe /c move \"%L\" .." Paste in a text editor (like notepad), save as a .reg file (not .reg.txt), and import to your registry by double clicking it. Tested on a clean XP VM.
×
×
  • Create New...