topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • Monday December 22, 2025, 4:42 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 ... 203 204 205 206 207 [208] 209 210 211 212 213 ... 364next
5176
tinjaw, how thorough do you need the compare to be?

You could do a diff of "unrar v archive{1,2}.rar" - that listing includes size, compressed size, date, CRC et cetera - enough to be able to see if there's any differences. The only problem I can think of is that it uses a two-lines-per-file format, so if files come in different order in the two archives, it's somewhat difficult to sort before diff'ing.
5177
Living Room / Re: Dino Run - cool online retro style multiplayer game
« Last post by f0dder on June 10, 2008, 05:30 PM »
Darn, that's cool!

The graphics are plain old retro-wonderful, and the music almost sounds worthy of the MOS-6581 (aka SID) chip from the C=64.

 :-* :-* :-*
5178
Living Room / Re: Linux hardware support about to get better
« Last post by f0dder on June 10, 2008, 05:26 PM »
And it wasn't posted April 1st? That sounds prettttty interesting. Especially since it's some pretty big vendors behind the thing. Guess some people got fed up with having Vista showed down their throats ;)
5179
Drag&Drop Robot / Re: Suggestion: Use Comspec
« Last post by f0dder on June 09, 2008, 09:36 PM »
Yes, accessing environment variables from D+DR could be useful enough - I just wonder whether all (or "all the important", anyway) shells interpret "/c" the same way? Also, what if you have your %ComSpec% set to an "alien" shell that doesn't support the .bat file syntax? (ie., bash)? There's lots of issues to consider :)

By the way, it seems like ShellExecute does honor the batfile/cmdfile registry entries, but don't care about %ComSpect% at all. But with ShellExecute, you don't get to redirect stdin/stdout...
5180
Living Room / Re: Where does the power go when I save it?
« Last post by f0dder on June 09, 2008, 08:59 PM »
Physics 101: energy is neither lost not gained, only transformed... Energy is always transformed into a state of greater entropy.
For us laymen, however, energy that ends up being transformed to heat simply because it's not used is "lost" :)
5181
Site/Forum Features / Re: Nofollow tags added to all external links
« Last post by f0dder on June 09, 2008, 07:34 PM »
<quote attr=nofollow>

Would have no affect.  Nofollow is for Anchor tags.
Yeah, but the idea is that applying it to the quote block would nofollow the <A> tags inside the quote... including the ones that are automatically constructed from entering a http://plain.old.hypertext.com without manually using a bbcode URL blog.
5182
If you run basically the same software, you're going to run a lot faster now than back in 1998.

But there's issues, definitely. Part of it is lousy programmers, part of it is lazy programmers, part of it is Microsoft having to support such a large legacy base, part of if is feature bloat, part of it is useful features, and part of it is the need for security (bounds checking, address space randomizations, etc. aren't computatoinally free).

VS2008 starts up about the same time as VS6 did... that is, VS2008 on a Q6600@3GHz/8gig/WD Raptor system, and VS6 on an Athlon700/512meg/whatever-UDMA66disk. But obviously VS2008 featureset is a lot bigger, it has a much better compiler, etc. Worth it? Yeah. Do I wish it was faster? Yeah.

Office2000, on the other hand, starts a bit faster. But it already started quite fast on a Pmmx-200/64meg (without the "office speed launcher" startup item). It runs a lot faster now, though ;). On the other hand, OpenOffice starts + runs slower on my current powerhouse machine than Office2000 did on the pmmx-200.

Really, is it surprising that an assembly coded 3D game fits in such a small size and runs so well?
It's not that we need assembly programmed games, we just need programmers that care a bitmore about what they do... and management that isn't so obsessed with time-to-market. Btw, kkrieger is C++, not assembly (well, for the main part, anyway). They use a custom EXE compressor to get the size so small, along with procedurally generated textures and geometry. You can't do that generically for everything, though, and it does impose a startup-time speed hit.
5183
Living Room / Re: Tell me why I have to be a PowerSlave?
« Last post by f0dder on June 09, 2008, 06:44 PM »
And let's crosslink yet another DonationCoder thread about power consumption: Where does the power go when I save it?.
5184
Living Room / Re: Where does the power go when I save it?
« Last post by f0dder on June 09, 2008, 06:42 PM »
Hehe, google for "tell me why I have to be a powerslave" still has a DonationCoder.com link on the first page - that's pretty frigging amazing, considering we're competing with Iron Maiden ;)

I wish we room-temperature superconductors would be researched soon, as that's the only way we could realistically store power - as it is now (as previously mentioned), power companies try to generate a bit much power than the expected demand, and adapt to the current usage patterns. I wonder how much energy is being wasted daily worldwide. At least the power grid in .dk is stable, even when demands rise... I wonder how much that costs in extra wasted power? :)

On the other hand, not all excess power is wasted, though. For instance, we have a whole lot of windmills in .dk... during night-time, their output generally goes unused. As far as I've understood, this excess power is sent into the european power grid, more or less free of charge (or at least at a very low cost) - but I was half asleep when I heard the programme about it on the radio.
5185
Site/Forum Features / Re: Nofollow tags added to all external links
« Last post by f0dder on June 09, 2008, 06:31 PM »
Nofollow sounds like a really good idea - when it becomes coupled with the "turn off after user has N posts" idea (where N should be a relatively small number, I doubt well ever see a spammer reach even 15 posts).

Also, a thing like <quote attr=nofollow> would be good, like MediaGuyUK recommends.

We want to penalize the bad guys, not ruin the good guys.
5186
Living Room / Re: Help needed with NVidia upgrade
« Last post by f0dder on June 09, 2008, 06:21 PM »
Yeah, nvidia forums don't really get attention from the developers... for example, screen rotation is abysmally slow (feels almost as if hardware accel is disabled when you rotate) on nvidia cards/drivers (at least "some versions" back) - and nvidia totally ignored the thread about it. ATi cards, even with their superbuggy and dangerous drivers, worked as they should (at least back on Radeon9600 :)).
5187
Drag&Drop Robot / Re: Suggestion: Use Comspec
« Last post by f0dder on June 09, 2008, 06:19 PM »
myarmor: smartest thing would be adding some specific rules for .bat/.cmd and let you specify the app+commandline to use. This could probably be written as some fancy regex thing that could be used for other things as well...

And yeah, this did turn out somewhat convoluted, from what could have been a relatively simple issue - turned out the underlying mechanics are "somewhat fuzzy" though :)
5188
Found Deals and Discounts / Re: Take Command Console LE from JPSoft
« Last post by f0dder on June 09, 2008, 06:16 PM »
I just heard about another free console enhancer:  Console
Pretty unstable, though - and it's relatively laggy as well, unless you bump down the update timeout and burn CPU cycles. And has problems with some "fullscreen console apps" (like hexit and hiew).
5189
Living Room / Re: Drinking Vinegar?
« Last post by f0dder on June 09, 2008, 06:13 PM »
Just for the record: unless science was, like, totally wrong back when I had biology class, vinegar does boost your metabolism (probably part of why some diets suggest frying your food in vinegar instead of oil/whatever).
5190
Drag&Drop Robot / Re: Suggestion: Use Comspec
« Last post by f0dder on June 06, 2008, 11:58 PM »
I generally set lpApplicationName=0, and construct a fully-qualified pathname (including quotes if necessary (ie., paths including spaces)) for lpCommandLine - this seems to give the most consistant results.

I dunno if the "To run a batch file, you must start the command interpreter" info from MSDN has ever been necessary, or if it's perhaps just a relic from the win3.x days... guess it might be worth firing up a win9x vmware image (and install + test a NT4 image) and see if they work with appname=0 and specifying just the batch file in cmdline.

Getting systemroot and appending cmd.exe definitely breaks Win9x compatibility - there really shouldn't be any systems with %ComSpec% set, and if you want to be really paranoid, don't hardcode anything but check the registry association for .bat (but that's almost at the point of being silly, imho).

second question, assuming i want to just let the OS do it's default when an alternate command shell isn't specified, can i check %comspec% and tell if a replacement shell has been configured.  i.e. if i see cmd.exe file in %comspec% shall i just assume its default and let CreateProcess handle the .bat file normally.
-mouser
Good question, really - see, if you simply start cmd.exe with a batch file as argument, you just get a new cmd.exe instance, and no executing batch file. You need to specify /C (run-and-terminate) or /K (run-and-remain) to cmd.exe before the batch file path. This is probably why CreateProcess has special magic for handling batch files in the first place!

Probably the best idea is to drop %ComSpec% entirely (magic'ing it for cmd.exe and command.com sounds like a recipe for disaster), and look up the registry... HKEY_CLASSES_ROOT\{.bat,.cmd} , follow the default value and check the shell\open\command of that key, doing proper expansion of it's default value.

OK, that sounds like too much bother as well, and a lot of opportunities for failing.

third and final question -- is there any value in letting the user manually specify the command shell to use when launching .bat files instead of checking %comspec%.  this would be useful for people who want to use an alternate shell not configured through %comspec%
-mouser
Probably the most failsafe method of doing it, and definitely the easiest.

EDIT: I just checked the (32-bit) version of kernel32.dll from my XP64 system, and indeed CreateProcess has hardcoded checks for .bat and .cmd, and hardcodes "cmd /c".
5191
Drag&Drop Robot / Re: Suggestion: Use Comspec
« Last post by f0dder on June 06, 2008, 06:30 PM »
I've just done some testing, and it seems that CreateProcess does not respect %ComSpec%. I started a shell, set ComSpec to something silly (zoomin.exe, it has a GUI so it definitely shows up if used) - if I then launch a .bat file (with the "start" command, just typing x.bat doesn't use the (new) ComSpec but the existing cmd.exe instance), sure enough, zoomin starts up.

I then made a little test app that MessageBox()'es it's commandline as well as %ComSpec%, then launched x.bat. Sure enough, %ComSpec% was inherited correctly, but still cmd.exe was launched - so CreateProcess definitely doesn't use it (haven't changed my .bat registry association, so dunno if it was looked up there).

ShellExecute doesn't use %ComSpec% either. Also, I made the batch file print %ComSpec%, and both with CreateProcess and ShellExecute, c:\usr\bin\zoomin.exe was printed, as expected.

So really, this is no fault of mouser's :) - pretty annoying anyway, as it sounds like .cmd and .bat need special manual handling in order to use %ComSpec%...

EDIT: mouser, you should only do this %ComSpec% thing explicitly for batch files, I doubt console apps launched through a command interpreter will pipe correctly - or at least that there could be issues with it.
5192
Drag&Drop Robot / Re: Suggestion: Use Comspec
« Last post by f0dder on June 06, 2008, 03:53 PM »
myarmor: perhaps you haven't fixed all assignments for .bat/.cmd properly? Try using regmon and see what .bat related entries are looked at when you launch a file with D+DR, perhaps it's related to some of the more obscure stuff like the DropHandler GUID entry... ShellExecute() works in mysterious ways :)
5193
Living Room / Re: Help needed with NVidia upgrade
« Last post by f0dder on June 06, 2008, 01:03 PM »
tabletguy: wtf, have 3rd-party people started doing custom drivers again for nvidia GPUs? I thought that stopped somewhere about/after the dreaded FX series. It was SO annoying having to get specific ASUS/MSI/whatever drivers back in the GeForce4 and earlier days... why don't people ever learn? >_<
5194
Living Room / Re: password-protect external HD (USB)?
« Last post by f0dder on June 06, 2008, 12:59 PM »
Okay, here it is, complete with all the scripts I use and even the Truecrypt executable needed to create and run the containers.  Oddly enough, it is so small that it is actually larger zipped, but it is more convenient to distribute as a zip, so that is how you get it :)
Ummm...
TrueCrypt AutoMount.zip - 1.1meg
TrueCrypt AutoMount [folder] - 2.51meg
:)
5195
Living Room / Re: password-protect external HD (USB)?
« Last post by f0dder on June 06, 2008, 08:12 AM »
Humm. I took a look at the site... it sounds like it doesn't actually create a partition, but rather uses a container file. Also, it sounds like the program does need to install drivers/whatever, because of the following paragraph on their site:
The new version of Rohos Disk (1.18) includes a new utility, Rohos Disk Browser. This enables you to open and view the contents of secret partitions on a USB drive on any other computer, even if you do not have administrative rights.
- also worth mentioning is that the Rohos browser is read-only.

Considering that TrueCrypt is available, open-source, and the people generally seem to know what they do, I wouldn't even consider Rohos... although I might download it to see if they've ripped off TC :)
5196
General Software Discussion / Re: Data recovery software suggestions?
« Last post by f0dder on June 05, 2008, 07:38 PM »
Thanks. I was asking because my dad overwrote an important finance file yesterday and he wanted to know whether it was possible to get back... or not. So I guess it's not possible?
If he's using normal FAT or NTFS filesystems, no - unless you're really lucky that a temporary copy has been made somewhere...
5197
General Software Discussion / Re: Data recovery software suggestions?
« Last post by f0dder on June 05, 2008, 07:02 PM »
There's probably at least one "versioning filesystem" out there, but I don't know of any off top of my head, and I would assume it'd have a nasty hit wrt. performance and fragmentation.
ZFS?
Humm, ZFS uses copy-on-write journalling, but does it do revisions? I know it has, probably tied to it's COW journalling :), some relatively inexpensive snapshot, stuff, but I'm not sure just how it works (ie., if it's something you could turn on globally, or you need to manually "take a snapshot" of a file).

Anyhow, it's COW journalling does mean you could probably track down old file contents, which is the most important point. Think about the implications wrt. secure file wiping? :)
5198
General Software Discussion / Re: Data recovery software suggestions?
« Last post by f0dder on June 05, 2008, 06:37 PM »
What happens when a file is accidentally overwritten (replaced) by a file with the same name? Is it actually physically over written, or is it still there somewhere on the hard drive (hence possible to recover)?
Depends on the filesystem. Traditionally, the area that's overwritten is re-used directly, because that's the most efficient thing to do. The old data is then gone (OK, so it's said that there's magnetic residue etc., but I've never been able to tell if that's just superstition based on how old MFM drives worked, or if it's possible to (ab)use this for modern drives... but normal people don't have access to the necessary gear, anyway).

There's probably at least one "versioning filesystem" out there, but I don't know of any off top of my head, and I would assume it'd have a nasty hit wrt. performance and fragmentation.
5199
General Software Discussion / Re: Data recovery software suggestions?
« Last post by f0dder on June 05, 2008, 11:05 AM »
GetDataBack is pretty slow, but it has worked very well for me in the past - except when doing really stupid things :)
5200
General Software Discussion / Re: Thorough harddisk checking.
« Last post by f0dder on June 04, 2008, 09:12 AM »
Spinrite?

Friends don't let friends use spinrite.
Pages: prev1 ... 203 204 205 206 207 [208] 209 210 211 212 213 ... 364next