topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • Thursday November 13, 2025, 5:29 am
  • 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 ... 129 130 131 132 133 [134] 135 136 137 138 139 ... 225next
3326
You can get 50GB of storage at ADrive.

Basic plan has no Desktop integration, you upload/download through the web interface.

it's being launched today so maybe too busy cause of that.
It opened for me yesterday - but not today...

Try http://kim.com/mega/ - seems to work better than just http://kim.com, (for me anyway).
3327
Developer's Corner / Re: Extract text PDF using AHK
« Last post by 4wd on January 18, 2013, 08:31 AM »
Here's a simple AutoIt program that will let you search a directory of pdf files, (including recursive), for specific text at the end it will output a list of files that had matches - started off based on the code above.

Nothing fancy but it might get you started.

Code: AutoIt [Select]
  1. #Region ;**** Directives created by AutoIt3Wrapper_GUI ****
  2. #AutoIt3Wrapper_UseUpx=n
  3. #AutoIt3Wrapper_Res_requestedExecutionLevel=asInvoker
  4. #AutoIt3Wrapper_Res_File_Add=pdftotext.exe
  5. #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
  6.  
  7. ; Include lots of constants for GUI creation
  8. #include <Constants.au3>
  9. #include <ButtonConstants.au3>
  10. #include <EditConstants.au3>
  11. #include <GUIConstantsEx.au3>
  12. #include <StaticConstants.au3>
  13. #include <WindowsConstants.au3>
  14. #include <RFLTA.au3>    ; Recursive filelist function
  15.  
  16. ; If pdftotext.exe doesn't exist then extract it from within the SearchPDF executable
  17. If Not FileExists('pdftotext.exe') Then
  18.         FileInstall('pdftotext.exe', '.\pdftotext.exe')
  19.  
  20. ; Global variables: inifile
  21.  
  22. ; Initial search directory = users Documents
  23. $current = @MyDocumentsDir
  24. $_text = ''
  25.  
  26. _GetIni() ; Get previous directory & search from inifile
  27.  
  28. ; Simple GUI interface
  29. #Region ### START Koda GUI section ###
  30. $Form1_1 = GUICreate("SearchPDF", 354, 376)             ; GUI window name/size
  31. $Input1 = GUICtrlCreateInput("", 7, 65, 250, 21)        ; Search text input field
  32. GUICtrlSetData($Input1, $_text)                         ; Set with previous data if it exists
  33. $Input2 = GUICtrlCreateInput("", 8, 10, 250, 21, BitOR($GUI_SS_DEFAULT_INPUT,$ES_READONLY))     ; Search dir display field
  34. GUICtrlSetData($Input2, $current)                               ; Set with previous data if it exists
  35. $Button1 = GUICtrlCreateButton("Path", 270, 7, 75, 25)          ; Path select button
  36. $Button2 = GUICtrlCreateButton("Exit", 136, 339, 75, 25)        ; Exit button
  37. $Button3 = GUICtrlCreateButton("Search", 272, 65, 75, 25)       ; Search button
  38. $Checkbox1 = GUICtrlCreateCheckbox("Recurse", 272, 40, 65, 17)  ; Recurse checkbox
  39. $Edit1 = GUICtrlCreateEdit("", 8, 100, 337, 229)                                ; Edit control for output, will let you copy text, (and edit it)
  40. GUISetState(@SW_SHOW)                                   ; Show the GUI
  41. #EndRegion ### END Koda GUI section ###
  42.  
  43.  
  44. While 1                                         ; Wait for something to happen
  45.         $nMsg = GUIGetMsg()                     ; Get any messages from the interface
  46.         Switch $nMsg
  47.                 Case $Button1                   ; Path button pressed
  48.                         $temp = FileSelectFolder('Folder to monitor:', '', 4)
  49.                         If @error <> 1 Then $current = $temp
  50.                         GUICtrlSetData($Input2, $current)               ; Change input field to reflect chosen path
  51.                 Case $GUI_EVENT_CLOSE, $Button2         ; GUI closed/Exit pressed: Write out current path/search text
  52.                         IniWrite($inifile, 'General', 'Path', $current)
  53.                         IniWrite($inifile, 'General', 'Search', $_text)
  54.                         Exit
  55.                 Case $Button3           ; Search pressed
  56.                         If (GUICtrlRead($Checkbox1) = $GUI_CHECKED) Then        ; Read state of Recurse checkbox and set flag
  57.                                 $_recurse = 1
  58.                         Else
  59.                                 $_recurse = 0
  60.                         EndIf
  61.                         $_text = GUICtrlRead($Input1)   ; Read search text, if empty pop up a message
  62.                         If $_text = '' Then
  63.                                 MsgBox(48, 'SearchPDF', 'No search text entered')
  64.                                 ContinueCase
  65.                         EndIf
  66.                         $_pdfFiles = _RecFileListToArray($current, '*.pdf', 1, $_recurse, 0, 2) ; Call RFLTA to list all .pdf files
  67.                         If Not IsArray($_pdfFiles) Or $_pdfFiles[0] = 0 Then    ; If none found, pop up a message
  68.                                 MsgBox(48, 'SearchPDF', 'No PDF files found')
  69.                                 ContinueCase
  70.                         EndIf
  71.                         Search($_pdfFiles, $_text)      ; Call Search function with array of pdf files and search text
  72.                 Case Else
  73.         EndSwitch
  74.  
  75.  
  76. Func Search($files, $text) ; Arguments passed: Array containing PDF path\filenames and text to search for
  77.         Local $_tempFile = @TempDir & '\tempPDF.txt', $output = ''      ; Local variables: temporary txt file and output
  78.         For $i = 1 To $files[0] ; First array element [0] contains number of files
  79.                 $_RunWait = '"' & $files[$i] & '" ' & $_tempFile        ; Compose command for conversion
  80.                 RunWait(@comspec & ' /c pdftotext.exe ' & $_RunWait, '.', @SW_HIDE)     ; Execute command for conversion with hidden CLI
  81.                 $filecontents = FileRead($_tempFile)    ; Read converted PDF file into variable
  82.                 $textInFile = StringInStr($filecontents, $text) ; Look for search text
  83.                 If $textInFile > 0 Then ; If it exists add filename to output list
  84.                         $output &= $files[$i] & @CRLF
  85.                 EndIf
  86.                 FileDelete($_tempFile)  ; Delete temporary txt file ready for next conversion
  87.         Next
  88.         If $output = '' Then $output = 'No files matched'
  89.         GUICtrlSetData($Edit1, $output) ; Write the results into the edit control
  90. EndFunc   ;==>Search
  91.  
  92. Func _GetIni() ; Reads data from ini file if it exists
  93.         If FileExists($inifile) Then
  94.                 $current = IniRead($inifile, 'General', 'Path', @MyDocumentsDir)
  95.                 $_text = IniRead($inifile, 'General', 'Search', '')
  96.         EndIf

pdftotext.exe is contained within SearchPDF.exe as a resource, it'll be extracted out if necessary.  Previous path and search are written to an ini file on exit to be used next time it's run.

Seems to work OK but no great bug finding was performed, no error trapping either.

EDIT: Cleaned it up a bit, (laugh if you like), now outputs to edit control so you can copy results, added lots of comments because mouser likes that kind of thing.
EDIT2: Tells you if no matches are found.

Anyway, I'm stopping there - you could add a progressbar, some way to cancel, better output (eg. line numbers within the file, no text within file, etc), etc.
3328
Developer's Corner / Re: Extract text PDF using AHK
« Last post by 4wd on January 18, 2013, 03:48 AM »
This might get you started, it's an AutoIt thread with source code provided so shouldn't be too hard to convert to AutoHK or just leave and modify to do what you want:

Search PDF files for specific word and delete them

It uses pdftotext.exe, (part of Xpdf distribution), to convert the PDF before searching, naturally you don't need the delete part of it - you could just change that to output a list of found files.

Code reproduced below, not tested by me, (although I'm thinking this might be something useful....hhmm...off to the Bat Cave  :) ).

Code: AutoIt [Select]
  1. ; Written by DavidFromLafayette & wakillon
  2. ; http://www.autoitscript.com/forum/topic/127980-search-pdf-files-for-specific-word-and-delete-them/
  3. #include <File.au3>
  4. $current = "r:\updatecd\gcr_document"
  5. $ext = "*.pdf"
  6. $_pdftotextPath = 'c:\gnuwin32\bin\pdftotext.exe'
  7. $_OutPutFilepath = 'C:\temp\file.txt'
  8. _FileCreate($_OutPutFilepath)
  9.  
  10. Search($current, $ext)
  11.  
  12. Func Search($current, $ext)
  13.  
  14.         Local $search = FileFindFirstFile($current & "\*.*")
  15.         While 1
  16.                 Dim $file = FileFindNextFile($search)
  17.                 If @error Or StringLen($file) < 1 Then ExitLoop
  18.                 ;ConsoleWrite('-->-- $file : ' & $file & @CRLF)
  19.                 If Not StringInStr(FileGetAttrib($current & "\" & $file), "D") And ($file <> "." Or $file <> "..") Then
  20.                         $_RunWait = '"' & $_pdftotextPath & '" "' & $current & '\' & $file & '" ' & $_OutPutFilepath
  21.                         RunWait($_RunWait, '', @SW_HIDE)
  22.                         $filecontents = FileRead($_OutPutFilepath)
  23.                         $ObsoleteinFile = StringInStr($filecontents, "Obsolete")
  24.                         If $ObsoleteinFile > 0 And $ObsoleteinFile < 100 Then ; check to ensure Obsolete is on title page
  25.                                 ConsoleWrite("Obsolete in File" & $file & $ObsoleteinFile & @CRLF)
  26.                                 FileDelete($current & '\' & $file)
  27.                         EndIf
  28.                         FileDelete($_OutPutFilepath)
  29.                 EndIf
  30.                 If StringInStr(FileGetAttrib($current & "\" & $file), "D") And ($file <> "." Or $file <> "..") Then
  31.                         Search($current & "\" & $file, $ext)
  32.                 EndIf
  33.                 Sleep(1000)
  34.         WEnd
  35.         FileClose($search)
  36.  
  37. EndFunc   ;==>Search
3329
Living Room / Re: Name 1 Technological Feature That You Think Is Good
« Last post by 4wd on January 16, 2013, 10:22 AM »
.... and what height they can descend to before they run into mountains.

I think I would have used the word avoid in there somewhere.
3330
Living Room / Re: silly humor - post 'em here! [warning some NSFW and adult content]
« Last post by 4wd on January 16, 2013, 05:50 AM »
2013-01-16_22-49-02.png
3331
Living Room / Re: win7 + external HDD
« Last post by 4wd on January 15, 2013, 06:22 AM »
Inquiring minds and all that....what happened?
3332
Living Room / Re: SGS3 Advertising Fail
« Last post by 4wd on January 14, 2013, 05:07 PM »
Power glitch at the store? Lazy employees that pulls plugs instead of proper shutdown? :)
Um... shouldn't a tablet type device having a battery negate those options? *Shrug* I got no problem calling it a crash ... Shit happens, Ya know?
Sure, if it was a tablet - that thing looks more like a man-sized advertising flatscreen (driven by some commodity windows software) with a tablet/phone-like frame on it? :)


And here I was just thinking it was a mockup of the soon to be released Win8 based SGS7...
3333
Living Room / Re: Electric shock from USB cable
« Last post by 4wd on January 13, 2013, 05:13 AM »
It's a Model 8 Mk IV, it uses a 1.5V D cell and a 15V "x" cell - I can use a battery pack made of 3V lithium cells to replace the 15V, (eg. 5 x 2032).

AVOMeter 05.jpg
3334
General Software Discussion / Re: Regular Expressions (help)
« Last post by 4wd on January 13, 2013, 04:58 AM »
Code: AutoIt [Select]
  1. #Region ;**** Directives created by AutoIt3Wrapper_GUI ****
  2. #AutoIt3Wrapper_UseUpx=n
  3. #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
  4.  
  5. ;$inclip = "***CONTRO*** February 28, 2010 at 5:18am"
  6. ;$inclip = '01.02.2010.05.18'
  7.  
  8. HotKeySet('^#!2', '_Doit') ; Win+Alt+Ctrl+2
  9.  
  10.         Sleep(1000)
  11.  
  12.  
  13.  
  14. Func _Doit()
  15.         $inclip = ClipGet()
  16.  
  17.         If StringLeft($inclip, 12) <> '***CONTRO***' Then
  18.                 $outclip = StringRegExpReplace($inclip, '(..)\.(..)\.(....)\.0?(.+)\.(..)', '\1_\2_\3 , \4_\5')
  19.         Else
  20.                 $outclip = _Valmorphanize(StringMid($inclip, 14))
  21.         EndIf
  22.  
  23.         ClipPut($outclip)
  24.         Sleep(50)
  25.         Send('^v')
  26.  
  27. Func _Valmorphanize($temp)
  28.         Local $hour = StringLeft(StringRight($temp, 7), StringInStr(StringRight($temp, 7), ':') - 1) + (12 * (StringRight(StringRight($temp, 7), 2) = 'pm'))
  29.         If Not Mod($hour, 12) Then $hour-=12
  30.         Return StringRegExpReplace($temp, '.+\b.\d+, (\d{4}).+:(\d{2}).*', StringFormat('%02s', StringRegExpReplace(StringMid($temp, StringInStr($temp, ' ') + 1, 2), '([,\s])', '')) & '_' & StringFormat('%02s', Int(StringInStr('JanFebMarAprMayJunJulAugSepOctNovDec', StringLeft($temp, 3), 1) / 3) + 1) & '_\1 , ' & $hour & '_\2')
3335
Living Room / Re: Gadget WEEKENDS
« Last post by 4wd on January 13, 2013, 01:22 AM »
Let's move onto something else food related then :)

IMG_5700.JPG

Always handy, the Titanium is even better.
3336
Living Room / Re: Electric shock from USB cable
« Last post by 4wd on January 12, 2013, 10:42 PM »
Mmmm, AVO!

AVOMeter 01.jpg

Now, if only I could get batteries for it....
3337
Living Room / Re: Gadget WEEKENDS
« Last post by 4wd on January 12, 2013, 10:36 PM »
Been using such a [different than mouser's] liner for a couple of decades (I bake a lot).

Well with a half-life of several thousand years I'd expect it to last ;D

BTW, I work it out to ~2.5 cents a time for the foil, (30m roll @ $2 / 400mm each time), changed at ~6 month intervals here, (don't use the oven much - microwave and stove-top Bessemer are much more efficient energy/cost-wise), so I'm good for 300-400 years before I'm losing out to a $20 gizmo.
3338
Living Room / Re: Gadget WEEKENDS
« Last post by 4wd on January 12, 2013, 09:03 PM »
Tinman, why are you trying to ruin a perfectly good, high-tech, possibly toxic, $20 gadget with an 8 cent just-as-good solution?  Are you trying to make me look foolish?

Actually, that 8-cent solution will cost more, considering the longevity of the $20 gadget  :-* :P.  (Well, depending upon how much you use the oven  :-\.)

Yes, but with recycling the 8-cent solution just keeps coming back  ;)
3339
Living Room / Re: Electric shock from USB cable
« Last post by 4wd on January 12, 2013, 06:25 AM »
The potential difference (voltage) across the tip and ring wires is usually around 50vDC when the telephone is not being used (i.e., is "on hook"), and this drops to drops to around 6vDC when it is in use (i.e., is "off hook").

These voltages could be quite handy! I recall seeing one early example of a nifty and compact digital phone with several memories (presumably a hot new feature at the time it was designed) that seemed to have no independent power supply of its own, and was completely parasitic off the phoneline's DC supply. It worked very well too. I think it's illegal to attach such parasitic phones to the PSTN now though.

Telstra' standard rental phones, (earlier T200 & T400), used the DC in the phone line to keep their memory backup charged, (capacitor if IIRC), thousands of these phones are still in use in Australia - I've got two.
AFAIK, they're still legal - Telstra only replace them if they're faulty or if you want the latest and greatest T1000 phone, (for $20 which I'm too cheap to pay for :) ).
3340
Living Room / Re: Electric shock from USB cable
« Last post by 4wd on January 12, 2013, 01:10 AM »
I'm going along with IainB on this, it does sound like a dodgy earth, (or earth<->neutral connection).

If they've tied the USB shield to the printer frame along with earth/neutral then it's probably picking up a slight leakage current through the AC wiring.

Antenna sockets on the backs of TVs are a really good place to get hit with this  :(

Working in Telstra, getting zapped was pretty much par for the course - working on the Main Distribution Frame in close proximity to 25-50 subscriber lines, any one of which might get an incoming call....90VAC doesn't exactly tickle.  The worst part is it would cause your hand to jerk back...into the block of connections behind  :-\

Then you were always wondering if some faulty piece of mains connected subscriber equipment was feeding 240VAC back into the line.

@Fred: Just as a matter of interest, do you have an RCD, (safety switch), installed ?
3341
Living Room / Re: New Desktop parts list (RFC)
« Last post by 4wd on January 12, 2013, 12:40 AM »
The software is simple Audacity, and I only use about five features - the stuff I do is pretty simple, but I do a decent chunk of it.

I might be wrong but I don't think Audacity does any hardware accelerated processing, (ie. it doesn't make use of any DSPs), so the CPU will be doing it all.

Hmm, so while the sound card has some abilities, are you saying I'm not seeing them?

Pretty much, it'll just be using it for playback like any normal Windows program.

If you read here you can get direct access to the hardware for low-latency effects but you need to compile Audacity yourself in order to get it, (propriety reasons).

According to this page, on the Audigy you will only be able to apply any effects through ASIO across the stereo output whereas later models, (Audigy 2), allowed you to apply them on a per channel basis but it does list some software that can use the ASIO drivers.
3342
Living Room / Re: New Desktop parts list (RFC)
« Last post by 4wd on January 11, 2013, 08:52 PM »
The software is simple Audacity, and I only use about five features - the stuff I do is pretty simple, but I do a decent chunk of it.

I might be wrong but I don't think Audacity does any hardware accelerated processing, (ie. it doesn't make use of any DSPs), so the CPU will be doing it all.
3343
Living Room / Re: New Desktop parts list (RFC)
« Last post by 4wd on January 11, 2013, 06:36 AM »
LookInMyPC is free, easy to use, and doesn't need an airline pilot's license to figure it out. It can create a comprehensive hardware profile report. It does a lot more too.  It's a nice utility to keep on hand. :)

Okay, here is my report. I turned off a lot of obvious stuff like browsers and hotfixes to keep it short.

Looks like it's an old, (by today's standards), Creative SB Audigy card that's been added - whatever software you're using is most likely leveraging the DSP on it.

Most modern CPUs would probably at least give it a run for it's money, especially given they can probably utilise their onboard stream processors to do the job.
3344
Living Room / Re: New Desktop parts list (RFC)
« Last post by 4wd on January 10, 2013, 07:48 PM »
SIW is very easy to use. There isn't a free version any more but you can find the last free build at:

www.oldversion.com/windows/siw/

That appears to be build 0916, (Sep 16), a later version could be available at PortableApps, 1029l (Oct 29).

The last Home Edition one from the SIW website is even later, 1029r, but it needs to be installed and comes with OpenCandy.
3345
General Software Discussion / Re: Spider Oak Purge
« Last post by 4wd on January 09, 2013, 03:54 AM »
I'm liaising with Spider Oak to try and sort the purging issue.

What happens if you try the specific example they have ?

--purge-historical-versions d60,m6,y
3346
General Software Discussion / Re: A new harddisk for my old notebook?
« Last post by 4wd on January 09, 2013, 12:20 AM »
For (not even guaranteed) transfer to a new computer, you need such 50$-for-just-one-transfer sw

Can't you just do a whole disc image to an external, swap the HDD, boot off the Paragon recovery CD, restore the image to the new HDD ?

That's the way I've done it for the last 8+ years or so - bonus is I get a backup and prove that it works.

here, it's important to not recreate your previous 60 giga (or whatever) partition on the new hdd, but to use the whole capacity of your new hdd (didn't get an answer ho much space will finally be addressed, controller-wise, but see below)

Not really an issue since you can use one of the many free partitioning programs to resize the partitions afterwards as you see fit.
3347
General Software Discussion / Re: Is there a decent youtube downloader?
« Last post by 4wd on January 08, 2013, 08:49 AM »
As for FF portable, you, 4wd, spoke about that version from the beginning; I have to admit I didn't "get" this in time and installed the normal version, but of course, a cache of 50 MB or suche doesn't explain my loss of space.

A default full installation of Firefox sets the disc based cache at 1024MB, (the same as IE seems to be whenever I've done a new install), this is about 950MB too much AFAIAC.

FirefoxPortable has the disc cache set at 0MB, (but not fully disabled), by default.

What I believe Shades is talking about is the Profile folder which contains more permanent data, eg. bookmarks, passwords, addon data, etc.

The FirefoxPortable link I put in above. (on my server), differs from the official one in the points I mention previously - the folder shouldn't get any larger unless you install more addons.

BTW, the homepage I added when it's run is instructions on using BYTubeD with DTA!, (with pictures).
3348
General Software Discussion / Re: Is there a decent youtube downloader?
« Last post by 4wd on January 08, 2013, 05:14 AM »
Something for you to play with: FirefoxPortable.7z (Right-click->Save as...) (NLA)

Just extract and run the FirefoxPortable.exe, all I've done is:
  • made sure it's always in Private Browsing mode, (all history/cache/cookies/cake/etc is cleared on exit),
  • made sure disc cache is disabled, (it uses 50MB of RAM as cache),
  • added BYTubeD and DTA! and configured them.

You might get a couple of tabs open asking if you want to install the Java Quick Starter and Microsoft .NET Framework Assistant - your choice as to what you do but No is preferable.

So, in theory, it'll only ever use about 65MB of disc space for the executable folder plus whatever you download into wherever you download it.

To uninstall: Delete the folder.

It also has a nice homepage. :)

BTW, concerning your "lost space" problem, check for the following folders:
C:\Documents and Settings\<user>\Application Data\Mozilla
C:\Documents and Settings\<user>\Local Settings\Application Data\Mozilla


If you don't have Firefox, (and possibly SeaMonkey), installed then you may safely delete those two folders.

FirefoxPortable will create them again when run, (FirefoxPortable only puts a few small files in them unlike a full Firefox installation), and delete them when it exits.
3349
Living Room / Re: silly humor - post 'em here! [warning some NSFW and adult content]
« Last post by 4wd on January 08, 2013, 12:43 AM »
Geeky men, be sincere: when a program is running fine, would you ever abandon your computer???

Um... What Computer?

You're right!

I only see monitors, keyboards and mice.
3350
Living Room / Re: Probably the single best idea I've seen in a *very* long time.
« Last post by 4wd on January 07, 2013, 08:52 PM »
Oh boy, free food! (but I'd have to borrow an old dead phone from someone to play this game, as I have never owned a cell phone)  :D

Especially if you have an accomplice who can ring one of the other phones ;)
Pages: prev1 ... 129 130 131 132 133 [134] 135 136 137 138 139 ... 225next