Tag Archives: HEX

Split binary file every occurrence of a group of charters.

By PatrickE

Hello I am new to scripts, codes, bash, terminal, etc.
I apologize this my be very scattered because I frankly don’t have any idea where to begin and I have had trouble sleeping lately.

Theres a code in HEX form “00 00 01 BA ** ** ** ** ** ** ** ** C3 F8 00 00 01 BB 00 12 80 C4 E1 00 E1 7F B9 E0 E8 B8 C0 20” that reappears every few 100 K it can be 300 or 700 in a file. The main files are around 2GB.
So there are a lot of these separate files.
I have been searching for a code to split the file at every occurrence of “00 00 01 BA ** ** ** ** ** ** ** ** C3 F8 00 00 01 BB 00 12 80 C4 E1 00 E1 7F B9 E0 E8 B8 C0 20”.

00 00 01 BA ** ** ** ** ** ** ** ** C3 F8 00 00 01 BB 00 12 80 C4 E1 00 E1 7F B9 E0 E8 B8 C0 20.
* = Random digit.

C3 F8 00 00 01 BB 00 12 80 C4 E1 00 E1 7F B9 E0 E8 B8 C0 20 – bits are necessary to stay the same. The first 12 bits do need to be included but can be random.

Back Story to problem:
I have a 500GB HD that had a 40GB HFS+ partition that i was using to transfer files from an old Dell PC to my Mac. Well I needed to reformat it I no longer remember why.
Well somehow the partition map got messed up and instead formatted the HFS 450GB partition. Which had all my home videos on it.
I found an application called disk drill and used that to recover all the data.
I am not sure if everything was found but it seems like it may have reconstructed the important stuff.

My problem with resolution:
Well the videos are all jumbled up, bits and pieces of Mpeg2 videos are mixed together.
I figured out where the files need to be split via a app called HEX Fiend.
And turns out there is a type of timecode used in the mpeg 2 files binary data. So using that I was able to correct 2 video files. Took me a week.

…read more
Source: FULL ARTICLE at The UNIX and Linux Forums

Review: Folder Colorizer brightens up Explorer, may help navigation

Microsoft Windows has been around since 1985, and one of the only things about it that hasn’t changed is Windows Explorer (File Explorer in Windows 8). We still have the yellow folder tree-like structure, and many people may argue that it is comforting to have something familiar to hold onto, something that we all know, while the rest of Windows goes through dramatic changes. But some people depend on color to navigate successfully between folders, and all-yellow isn’t going to cut it. If that’s you, check out the free Folder Colorizer to add a dab of paint to the place and inject some color and life into the operating system. You may be surprised at the difference in not just your mood, but the efficiency of navigation.

Just right-click on the folder you want to colorize and choose your shade. If the one you want is not there, you can access a color table to make more colors.

Simply put, Folder Colorizer (as the name implies) allows you to assign a set color to each folder in Explorer. Upon installation (which also requires a system reboot), you are given some pre-set colors to start playing around with, and to install a certain color, all you have to do is right-click on the folder and go to the newly inserted  “Colorize!” option in your right-click Explorer menu. From there, you can choose a color and the changes will take effect immediately.

If you don’t like the color change, you have three options: You can change to another color, choose  “restore original color ” to completely undo everything, or reveal the hidden files in Explorer to reveal a temporary color file inside the folder. Delete that and your folder’s original color will immediately re-appear.

The color table enables you to add and remove colors to get the ones you want.

If you don’t care for the preset colors, you can delete them and start again, courtesy of a color wheel. However, this color wheel doesn’t do RGB and HEX color codes, so nix any thoughts of getting that subtle shade that you simply adore. It only allows you to point to red, green, yellow, and so on, with slight shades of each. It’s not bad, but RGB and HEX support would make it so much better.

To read this article in full or to leave a comment, please click here

…read more
Source: FULL ARTICLE at PCWorld

String to HEX conversion in UNIX

By vivek d r

i have this below string which i need to convert it to HEX. i have already tried it but it showing extra few things on it.. let me show what i have done and what is the output i am getting and what is the desired output
the input string is

Code:


"!"""""""!""""""""


which is technically nothing but below

Code:

!"""""""!""""""""


so as for now consider that string is already present in variable myString

Code:

myString=$( echo $myString | sed 's/\//g' )
#above command to strip in between '"'

len=${#myString}
cutString=${myString:1:$len-1}
#above command to strip additional '"' at first and last character.

echo $cutString
echo $cutString | xxd -c 256 -ps
#above command to convert it to HEX


output obtained as of now is as below

Code:

21222222222222222122222222222222220a


BUT the actual output for

Code:

!"""""""!""""""""


should be

Code:

2122222222222222212222222222222222


32 characters.

as according to

HTML Code:

http://www.string-functions.com/string-hex.aspx


any help on this is deeply appreciated. thanks

Source: FULL ARTICLE at The UNIX and Linux Forums

Horizons Enhanced Income Equity ETF Makes Bullish Cross Above Critical Moving Average

By DividendChannel.com In trading on Wednesday, shares of Horizons Enhanced Income Equity ETF (Toronto: HEX) crossed above their 200 day moving average of $7.35, changing hands as high as $7.37 per share. Horizons Enhanced Income Equity ETF shares are currently trading up about 1.1% on the day. The chart below shows the one year performance of HEX shares, versus its 200 day moving average:
Source: FULL ARTICLE at Forbes Markets