Thursday, June 8, 2017
recover text from docx
recover text from docx
A friend got into trouble with a broken usb stick and sole copy of notes in a now unopenable .docx file. Oh dear.
If you google for apps to recover corrupt .docx files there are a phletora of tools! Yeesh! Make backups people. You have to get burned once I suppose before you learn to make backups properly. I remember in the good old days, (well, the old days, (well, 1993ish, (not so old))) when I got a bit overconfident and put tons of content into a .doc for my final year project ... AND then discovered that the files I had worked on for hours were unopenable despite a few backups along the way. Argh!
So the winner of this impromptu recover text from .docx file IS:
http://sourceforge.net/projects/docx2txt/
Tadahhhhh!
Congrats to Sandeep Kumar.
Extra especially pleased I am that it is a perl script :) Heh heh :)
ANd actually looking inside its nice and straightforward. Open up internals of docx as xml and parse out text
I initially tried xxd
Then had a look with emacs. Murghh not good :-7
Then some .exe shareware tools, docXConvertor.exe Damaged-DOCX2TXT.exe meh meh
Go to link Download
Friday, March 24, 2017
Recover Your Disk Space with the New Windows Update Cleanup
Recover Your Disk Space with the New Windows Update Cleanup
Every time Microsoft patches Windows, the obsolete versions of earlier files and their settings are normally stored in the WinSxS folder( C:WindowsWinSxS) . This helps if you needed to roll back a patch, Windows can pull it out from the previous version stored in the WinSxS folder. But it consumes huge amount of disk space. You cant just manually delete everything in that folder, because some files are needed if you want to roll back a Windows Update .
.
Microsoft has recently released a tool "Windows Update Cleanup" for Windows 7 that adds a new option in the Disk Cleanup tool.With this update (KB 2852386) you can free up several gigabytes of hard drive space .Once you have it installed, run Disk Cleanup and click the "Clean up system files" button to find the new Windows Update Cleanup option.After you install this update, you can use the Windows Update Cleanup option to delete Windows updates that you no longer need.
Right-click on your C: drive -> Properties-> Disk Cleanup button .Here you can see a summary of what files Windows can clean up -- temporary files, Recycle bin and log files. It is not bad , if you are able to retrieve 1GB to 3GB -- or more -- of C: drive on all of your Win7 SP1 machines .
Notes
The Windows Update Cleanup option is available only when the Disk Cleanup wizard detects Windows updates that you do not need on the computer.
To enable you to roll back to previous updates, updates are stored in the WinSxS store even after they are superseded by later updates. Therefore, after you run the Disk Cleanup wizard, you may be unable to roll back to a superseded update. If you want to roll back to a superseded update that the Disk Cleanup wizard deletes, you can manually install the update
You needed to run Windows Genuine Validation
to install Windows Update Cleanup
Download the update package for x86-based versions of Windows 7
Download the update package for x64-based versions of Windows 7
Go to link Download
Thursday, October 27, 2016
recover Fionns mobile from badness
recover Fionns mobile from badness
I think Fionns phone has done this a bit before.
If it is low on free memory then it gets very slow + flaky.
Drops calls, resets, ...
Need to free up memory by clearing off photos/videos/messages.
I had copied photos off it a week ago - bluetooth to laptop. But failed to delete them after copying. The delete just timedout. I manually transferred and deleted videos and reset the phone. This gave 2M free instead of about 1M. Then deleting and transferring photos wasnt going fast. Manually I copied a couple of files across but mostly ubuntu konqueror file browser window would hang/pulse for a bit then report error. So I called my bt-sync-mobile.sh script repeatedly and it transferred a few files each time and eventually also deleted all. With a small mod. Yays.
http://gaoithe.blogspot.com/2009/11/bt-sync-mobilesh-script-handle-files.html
Phone seemed much more stable. Took a good while after restart for messages to be readable so I guess message database is quite big and needs indexing/loading into memory.
nokia 3120. Can only access some of file system on bluetooth and we dont have a custom usb/other cable for phone of course. Pain. Bring on the generic (Euro?) standards for data transfer cables / power adaptors / IR TV/DVD/car controls / whatever!
http://gaoithe.blogspot.com/2009/11/bt-sync-mobilesh-script-handle-files.html
$ git diff torture/
diff --git a/torture/bin/bt-sync-mobile.sh b/torture/bin/bt-sync-mobile.sh
index 9a733d7..670999e 100755
--- a/torture/bin/bt-sync-mobile.sh
+++ b/torture/bin/bt-sync-mobile.sh
@@ -170,6 +170,7 @@ function wipe_existing_files_from_list () {
echo for now we check if file exists already and wipe from list
##file list to retrieve by eliminating ones already retrieved
FILESTOGET=
+ FILESTODEL="$FILES"
for F in $FILES ; do
F2=$(echo $F|sed s/_SPACE_/ /g)
if [ "$OPTS_VERBOSE" != "" ] ; then
@@ -238,7 +239,7 @@ function track_the_files () {
# cleanup files matching certain patterns on mobile if they were successfully retrieved
# we could use -G earlier (get and delete)
function clean_the_files () {
- for F in $FILES ; do
+ for F in $FILESTODEL ; do
F=$(echo $F|sed s/_SPACE_/ /g)
###if [[ -f bin/eirkey.pl && ( -n ${FG#wami-2} || -n ${F%gpx} ) ]] ; then echo yep; fi
diff --git a/torture/bin/run-bt-sync-mobile.sh b/torture/bin/run-bt-sync-mobile.sh
index 298ab8b..5e496ab 100755
--- a/torture/bin/run-bt-sync-mobile.sh
+++ b/torture/bin/run-bt-sync-mobile.sh
@@ -5,3 +5,4 @@ bt-sync-mobile.sh -c Pooky "C:/Data/Videos/"
# .amr files
#bt-sync-mobile.sh Pooky "C:/Data/Sounds/Digital/"
+#bt-sync-mobile.sh -c "Nokia 3120 fionnuala" "Images/"
$ meld torture/
$ git commit -m"bt-sync-mobile.sh need to delete already synced files which do not get in FILES (to transfer) var" torture/bin/bt-sync-mobile.sh torture/bin/run-bt-sync-mobile.sh
Created commit 021d6db: bt-sync-mobile.sh need to delete already synced files which do not get in FILES (to transfer) var
2 files changed, 3 insertions(+), 1 deletions(-)
Go to link Download