Latest posts of: 4wd - DonationCoder.com
Welcome Guest.   Make a donation to an author on the site August 28, 2015, 10:07:53 PM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
The N.A.N.Y. Challenge 2014! Download dozens of custom programs!
   
  Forum Home Thread Marks Chat! Downloads Search Login Register  
  Show Posts
      View this member's profile 
      donate to someone Donate to this member 
Pages: Prev 1 ... 75 76 77 78 79 [80] 81 82 83 84 85 ... 157 Next
1976  Main Area and Open Discussion / General Software Discussion / Re: Checking Bad sector in HDD and ExtHDD on: June 26, 2012, 08:44:17 PM
Just ran across this thread, nobody mentioned Steve Gibson's Spinrite?

1) friends don't let friends use SpinRite. Just thought I'd have to add it since it was mentioned.

If somebody starts using SpinRite on a drive with bad sectors and an upcoming head-crash... well...  rip

DRevitalize, Chkdsk, MHDD, etc could probably also fall into this category, since they both stress the drive to some extent you'd be well advised to recover as much data as possible before running any surface testing program over a marginal drive.
1977  Main Area and Open Discussion / General Software Discussion / Re: Checking Bad sector in HDD and ExtHDD on: June 26, 2012, 08:08:17 PM
Lets say you have a HDD that starts developing bad clusters and by the time you find out the problem there is N bad clusters:

.....

The longer one make his/her final decision the more data will be lost and the more he/she suffers. I really can't figure out why this matter can become purely subjective?

I don't know if you realise it but you are arguing for my case smiley

Different circumstances = Different decision

As I've said all along.

An objective decision would be made if the drive stopped working completely, (eg. apply power and nothing happened)....but it hasn't so the choice is still up to the individual, (ie. subjective).

Quote
As soon as REAL bad cluster is found, trashing the HDD is a matter of affirmative and securing as much as possible data on it is an urgency... remember this:
Restoring backup to a new HDD is always easier and take much shorter time than rebuilding it from scratch.

The fact that manufacturers provide spare blocks shows that they expect there to be sector failures over the life of the drive - it's whether or not the number of those is excessive, in what circumstances, (time frame), they occurred and the life of the drive that would be of more interest to me in determining whether or not the drive is still suitable for my purposes.
1978  DonationCoder.com Software / Finished Programs / Re: DONE: Are any of the files missing??? on: June 26, 2012, 07:48:33 PM
Would be a plus for the program to give some idea it's still chugging along, especially on large comparison jobs.  In present test the progress bar has already gone from left to right, but job appears incomplete.  I'll keep letting it run for... a week.

If job completes successfully, will a text file list of the one-only files appear in the TIOOO directory?

It outputs a text file to your system temp directory, (currently WTFlist.txt because I forgot to change the output filename smiley ).

Quote
Okay, list popped up in my default editor.  Worked like a charm!

So that was about an hour for how many files in total, (folder 1 + 2) ?

Maybe I can speed it up.  BTW, any chance you can ZeroZip the two folders and make them available for testing with?

However, it now occurs to me that in your case, another Unix utility might be better, comm, e.g. the one contained in GNU utilities for Win32:
Usage: comm [OPTION]... LEFT_FILE RIGHT_FILE
Compare sorted files LEFT_FILE and RIGHT_FILE line by line.

  -1              suppress lines unique to left file
  -2              suppress lines unique to right file
  -3              suppress lines unique to both files
      --help      display this help and exit
      --version   output version information and exit

I think that's the opposite of what we're trying to do - we want to suppress lines that are common to both files.

However, the File Intersection program looks pretty well spot on.  Thmbsup
1979  Main Area and Open Discussion / Living Room / Re: Odd cookie problem on: June 26, 2012, 07:40:17 PM
Have you tried deleting Firefox' two cookie sql files?

cookies.sqllite & cookies.sqllite-journal in your Firefox profile directory.

Maybe they've become corrupted, Firefox will create new ones the next time it runs, (well it should).
1980  Main Area and Open Discussion / Living Room / Re: Raspberry Pi's $35 Linux PC on: June 26, 2012, 07:30:42 PM
I was leaning toward the arduino for this very reason (I have a small robotics project in mind).  I've done a bit of research, and as you say there are any number of resources available, but as this is potentially a very complex subject I guess I was looking for a recommendation of a good entry point.

You could connect multiple Arduino together using it's I2C bus, ethernet or GPIO.  Using the Arduino Nano you could possibly break down a complex project into a set of discrete modules.

Arduino I2C interconnection
1981  Main Area and Open Discussion / Living Room / Re: Odd cookie problem on: June 26, 2012, 07:18:40 PM
Anybody? Anybody? smiley
Seems like the whole DC community is "working" for kalos & contro nowadays.

You forgot nkormanik  tongue


@Carol: OK, a far out idea but some sites know when you're logged in from two places, (eg. GMail).

Could it be that the Nectar site is the same and sets all cookies other than the first logon to be session only ?

ie.  If you log out of the site on your desktop, remove it's cookie (probably not necessary), and then log in from your laptop, will it remain logged in across sessions ?
1982  Main Area and Open Discussion / General Software Discussion / Re: Checking Bad sector in HDD and ExtHDD on: June 26, 2012, 07:16:33 AM
The OP has now said the drive was dropped, (it's like getting blood from a stone with some people smiley ), if it was me, I wouldn't be using it any more - most likely the heads would have bounced which won't have done them any good.

...You gotta watch those pesky details.  wallbash


You got that right, I slammed my fist down on my desk a few months ago - a month later a 1.5TB suffered head detachment.

Coincidence ?  I'd like to say so but.......  

embarassed
1983  Main Area and Open Discussion / Living Room / Re: Odd cookie problem on: June 26, 2012, 06:28:23 AM
Does a cookie actually get set, eg. Firefox->Options->Privacy->Show cookies ?

And does it show a use-by-date ?
1984  DonationCoder.com Software / Finished Programs / Re: DONE: Are any of the files missing??? on: June 26, 2012, 06:22:20 AM
TCBOO - output will open in your default text editor, where you can view or save it.

TCBOO = There Can Be Only One   smiley (In honour of TaoPhoenix)

[attach=1]

Only files that exist once will be listed.

The interface is self-explanatory, tool tips for everything of interest.

Caveats:
  • It can, in theory, only handle about 16 million files but I still wouldn't like to wait for the output.  Technical reason: Array limits.
  • It uses strings for the comparison, maximum string length is ~2 Giga-characters - which is a lot.  However, if you're are doing a lot of really deep nested files, then this limit may be exceeded but it would really have to be a lot.
  • Source code is messy and uncommented but hey, that's the way I like it.  Technical reason: It keeps my brain active.

Update (starting at v0.4 which was a fairly large rewrite):
  • Comparison speed has increased due to skwire pointing out a rather simpler way of doing things - thanks skwire!
  • You can optionally exclude the folder tree, (relative to initial path), from the comparison
  • Filters and Folders are written to an ini file, (same name as executable), when you exit
  • It works for network shares, (ie. really hacky mod that stopped it is no more)

Update (v0.5)
  • Uses a much faster sort routine.

Differences from previous version:
  • It only looks for and removes from the output, files that occur in multiples of 2 - I had over-engineered the previous versions to remove any file that occurred 2 or more times, as skwire kindly pointed out  embarassed
    eg. So if a file exists 3 times, it will appear once in the output.  If it exists 4 times, it won't appear in the output. (Dependant on Different Tree setting)

How much faster is it from the previous version?
On my computer, (3.3GHz x6):
Previous version: 54548 filenames in 281 seconds, (HDD uncached read)
Version 0.4:        54550 filenames in 5 seconds, (HDD cached read)
Version 0.4:        253350 filenames in 63 seconds, (SSD uncached read)
Version 0.4:        253350 filenames in 28 seconds, (SSD cached read)

Most of the time is spent getting the file lists as from v0.5.
1985  DonationCoder.com Software / Finished Programs / Re: DONE: Generate sequential serial numbers on: June 26, 2012, 12:15:33 AM
@4wd your version of _IniBool() would never return True. The reason is values read from ini files using IniRead are always strings.

It would have returned True if $val = 1, $val = '1' or $val = True - the only case it failed was if $val = 'True' because the implicit Number() call returns 0 for 'True'.

So yeah, my goof  embarassed

Formatted for AutoIt with the GeSHI Syntax Highlighter [copy or print]
  1. Func _IniBool($temp)
  2.  Return ($temp = 1 Or (Not StringCompare($temp, "true")))

My excuse is I was writing it on my netbook, lying in bed, with less than 3 minutes of battery remaining  smiley
1986  DonationCoder.com Software / Post New Requests Here / Re: Wish list program on: June 25, 2012, 11:15:50 PM
What can i do ?

[attach=1]
1987  DonationCoder.com Software / Finished Programs / Re: DONE: Batch adjust shortcut targets on: June 25, 2012, 09:27:14 PM
Albeit hard to find, there already is a GUI tool that can alter shortcuts: Shortcuts Search And Replace

I don't think that can change the actual target, just the target path, (and other bits).
1988  Main Area and Open Discussion / General Software Discussion / Re: Checking Bad sector in HDD and ExtHDD on: June 25, 2012, 09:19:42 PM
No offence, but I think it is very inappropriate to advocate the idea that HDD with bad sectors (or clusters) can still be healed ... by whatever program, you named it.

None taken, (and I hope I don't cause any), but my point was: until you know what you're dealing with, (software or hardware, temporary or permanent), then just saying the drive is terminal, (for me anyway), goes against all the years I spent as a technician.

But I also understand the point you and SJ make where you're dealing with business/critical systems, which is why I said it depends on the circumstances.

How much is your data worth?
How much time do you want to spend on it?
How much money do you want to spend?
Can you live with the potential failure or worry about it constantly?

It's a purely subjective decision.

The OP has now said the drive was dropped, (it's like getting blood from a stone with some people smiley ), if it was me, I wouldn't be using it any more - most likely the heads would have bounced which won't have done them any good.
1989  DonationCoder.com Software / Finished Programs / Re: DONE: Generate sequential serial numbers on: June 25, 2012, 07:54:01 PM
I'm one of those strange people that always try to use the smallest amount of space possible: in electronics I pack components together on a board, (and then have fun finding the faults); packing items, I'll try to use the smallest practical space; in code, I'll look for less lines.

Easy to see it as boolean instead of string.) That's why I came up with _IniBool() function. It seems trivial but with it you can actually use Boolean values in AutoIt variables and True or False will be written to the .ini using IniWrite. If the user changes it to 1 for true and 0 for false, it still functions as expected.

[copy or print]
Func _IniBool($val)
    If $val = "True" Or $val = "1" Then Return True
    Return False
EndFunc   ;==>_IniBool


Formatted for AutoIt with the GeSHI Syntax Highlighter [copy or print]
  1. Func _IniBool($temp)
  2.  Return ($temp = 1 Or (Not StringCompare($temp, "true")))
1990  DonationCoder.com Software / Finished Programs / Re: DONE: Are any of the files missing??? on: June 25, 2012, 07:03:16 PM
Using a bit of Google-fu:

This batch file will get you a list of files sans paths, (rename output file before running a second time):

Formatted for Generic Code with the GeSHI Syntax Highlighter [copy or print]
  1. REM listfile.bat
  2. @echo off
  3. for /r %1 %%g in (*) do echo %%~nxg>>list.txt
  4. sort list.txt /O sorted.txt
  5. del list.txt

eg. listfile.bat c:\ will give you a file called sorted.txt containing a list of every file on C: drive

WinMerge, (free), will let you compare two text files for differences.

BTW, WinMerge will also compare folders but my way added a bit of scripting  tongue

I suppose a simple GUI frontend could be made using Auto(It|HK) to automate all the steps, ie. pick two folders, hit Go.
1991  DonationCoder.com Software / Finished Programs / Re: DONE: Batch adjust shortcut targets on: June 24, 2012, 01:33:35 AM
OK, I was bored so I thought I'd have a play around and came up with BSM, (guess what that stands for).

[attach=1]

It'll modify shortcuts according to the regex entered - for modify read: it will delete and then create a new shortcut according to the modified information.

You can test what will happen by checking the Test box, only the first 20 shortcut manglings will be displayed.  If you enter nothing in the regex fields and hit the Go button then it will delete and then create the existing shortcuts with no changes - think of it as 'refreshing' your stale shortcuts.

****NOTE**** All the pictures changed with v0.2+ - that's why they're not here anymore.

For a roundup of the regex you can use, see here, for more than you ever wanted know, see here.

You can also click on the RegEx to have it open the first page in your browser, (images were grabbed before I added the RegEx link - I'm not going crazy, it only looks like it).

DISCLAIMER: Because I code for my enjoyment and not others: No error checking, trapping, safety nets, etc.  smiley

By design the program should only ever effect shortcuts, (*.lnk), but if you get it to launch a pre-emptive nuclear strike against Melbourne, Australia, just remember......I won't be around to fix the bug.

It's all in the archive up here.

Are you saying that you have 32,220 rules/entries in File Punter?  If so, why?

I think he means running over two lots of 16110 files, (number of image files quoted in another post).
1992  Main Area and Open Discussion / Living Room / Re: Show us the View Outside Your Window on: June 23, 2012, 08:46:57 AM
...and so as Melbourne Airport gets nuked into the wasteland of time we say farewell to another wintery day....

[attachthumb=1]
1993  DonationCoder.com Software / Finished Programs / Re: DONE: Batch adjust shortcut targets on: June 23, 2012, 02:42:57 AM
OK, maybe this slightly modified version will get there:

Added:
  • Basic wildcard filter for file matching.
  • Option to output shortcuts to one directory.

So you should be able to put all your images in one directory, enter 50503*.* in the filter field and have a load of shortcuts for matching files created in another directory sans directory structure.

...so goes the theory.

Absolutely no error trapping or any of that kind of malarkey  - you put something stupid in the filter field it's your fault. smiley

[attach=1]

See above for archive.

Added mouseover tooltips.
1994  Main Area and Open Discussion / General Software Discussion / Re: corrupt index (I think): how to fix? on: June 23, 2012, 12:33:47 AM
... after @4wd pointed me to use MediaInfo in another discussion thread:

Sorry  embarassed

I tend to always look for the Lite version of things but never actually refer to them by name, eg. MediaInfo when I mean MediaInfo Lite.  That also extended to the laziness in which I just added a link to the main program site.......sorry again.

Plus I run UniExtract over installers to see if programs really need to be installed, so I miss a lot of the extra 'goodies' they put in installers.
1995  DonationCoder.com Software / Finished Programs / Re: DONE: Batch adjust shortcut targets on: June 23, 2012, 12:16:32 AM
What about the world lacking and needing "Batch adjust shortcut targets"???

But what you are doing is copying the files with a new name to a new destination.

It would be easier to create a new shortcut.

Is the folder structure for the images and the shortcuts the same?

If so then try this: BSC (nothing to do with cows)

[attach=1]

Instructions:

Honestly, do you really want some?

Oh OK, it creates shortcuts in the Destination directory of whatever files are in the Source directory complete with directory structure - Bulk Shortcut Creator.

And yes, that is a cow icon smiley

Also BSM in the other archive

[attach=3]
1996  Main Area and Open Discussion / Living Room / Re: silly humor - post 'em here! [warning some NSFW and adult content] on: June 22, 2012, 09:59:37 PM
We called it a 'Prophylactic Power Refresh' when I was with Telstra, ie. it solved the likelihood of further problems.  cheesy
1997  DonationCoder.com Software / Screenshot Captor / Re: Time Interval in Auto Capture Timer on: June 22, 2012, 08:54:38 PM
Or create a screen-movie, using something like the free CamStudio

CamStudio I think don't have the pause button.
So I only can see the super-quick warning.

Play back the CamStudio capture file with another program, eg. MPC, VLC, etc.

Then you can pause and step through the AVI.
1998  Main Area and Open Discussion / General Software Discussion / Re: corrupt index (I think): how to fix? on: June 22, 2012, 08:27:00 PM
http://mediainfo.sourceforge.net/en

Mediainfo: want to hear some shady shit??  Check this out:

MediaInfo Lite - "just the facts m'am"

Always look for the lite Wink
1999  Other Software / DC Gamer Club / [EXPIRED] Steam Weekend Deal - 75% off All Deus Ex Titles on: June 22, 2012, 05:30:36 AM
Via OzBargain again:

[attach=1]

Click on the image for the Steam store page.
2000  DonationCoder.com Software / Finished Programs / Re: DONE: Generate sequential serial numbers on: June 22, 2012, 03:00:22 AM
Please explain to me how the code would work correctly, even if variable data types are allowed. What is the outcome of mySerial += myFactor when mySerial is something like "000001" (a string). I would be very surprised if you claimed it would equal 3 (integer).

While I'm no good at AutoHK, it did spring from AutoIt - so here's a little excerpt from the help file:
Quote
In AutoIt there is only one datatype called a Variant.  A variant can contain numeric or string data and decides how to use the data depending on the situation it is being used in.  For example, if you try and multiply two variants they will be treated as numbers, if you try and concatenate (join) two variants they will be treated as strings.

If a string is used as a number, an implicit call to Number() function is done. So if it doesn't contain a valid number, it will be assumed to equal 0.

So this:
Formatted for AutoIt with the GeSHI Syntax Highlighter [copy or print]
  1. $mySerial = '000001gh'
  2. $myFactor = 2
  3. $mySerial += $myFactor  ; With the implicit call becomes: Number($mySerial) += $myFactor

$mySerial = 3

Add this:
Formatted for AutoIt with the GeSHI Syntax Highlighter [copy or print]
  1. StringFormat('%06s', $mySerial) ; With the implicit call becomes: StringFormat('%06s', String($mySerial))

$mySerial = '000003'

Quote
Keep up the bad practice if you like!  Thmbsup

I'll take function over form any day as long as it gets the job done  Wink
Pages: Prev 1 ... 75 76 77 78 79 [80] 81 82 83 84 85 ... 157 Next
DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.391s | Server load: 0.02 ]


Share on Facebook
submit to reddit