I am trying to change the length of an audio file so it shows up as 1 second long. The audio file is an mp3 and is 3:29 in length. If anyone can help me, this would be greatly appreciated!
Related
I have a weird issue. I am reading out a request with mitmproxy which gives me RAW form data in the following format:
\x0c\x0c\x0c\x0c\x0c\x0c\x0e\x0e\x0e\x0e\x0e\x0f\x0f\x0f\x0f\x0f\x0f\x0f\x0f\x0f\x0f\xff\xdb\x00C\x01\x02\x03\x03\x04\x04\x04\x07\x04\x04\x07\x10\x0b \x0b\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\xff\xdd\x00\x04\x00\x87\xff\xda\x00\x0c\x03\x01\x00\x02\x11\x03\x11\x00?\x00\xee\xe3\x11\x82]X0'\x08\x08\xc2\x8f\xa5x\x96:\xadb\xca\xcb\x19\x9e7\x96\x1e\x14d\x91\xebHHt\xd3\x19
\xaa\x92VN\x80\x0c\x03\x83\xebAb\xcd\x1a6B\x9f\x9d6\xed
\xd9\xabP \x89QX\x98\xe4\x0cs\x90\xac:\x1e\xe0P\x03|\xd6pv\xe5X\x9f\x9c\xfa\x13\xd0R\x01C\x11\x10]\xc5T6=\xda\x80, \x04'd;S\xa9f\xeb\x92i\xd8\x84\xae>\x15\x84HW\x86\x90\x02\xf8>\xfdh\xb1MX\x85\x91c\x95^Q\x92\x17\x85\x1c\x8cv \x9a\xc8\x94&\xc2\xb9\\\xee\xders\xc6
\x05\x8e`\xa6M\xca{c
In this data is an image embedded. I managed to get the image out via the hexviewer from mitmproxy and know at what hex it starts and ends.
Now, I need to add a modified image back into the request. However, the image is now in Hex format like this:
ffd8ffe000104a46494600010200004800480000ffe107944578696600004d4d002a0
This works fine in an hex to image viewer. But how can I convert this back in the format as above to be able to edit the request properly?
Any help would be greatly appreciated.
I am trying to read a file containing non-ASCII characters in R, please see the screenshot below.
enter image description here
When I use readLines() to read the file, I get simply few lines of content.
enter image description here
Please help! Any answer is highly appreciated.
I used in R
download.file('https://www.census.gov/retail/marts/www/marts_current.xls', method='auto',
destfile='C:/Users/<my name>/Desktop/test.xls')
expecting to see the contents of marts_current.xls in test.xls but much of the content in the source file is left out.
Can someone help me understand why? How can I get the whole file?
Excel xls files are binary files and care should be taken to download them as such. the default for download.files is to assume they are text files. You can control this with the mode= flag. Use
download.file('https://www.census.gov/retail/marts/www/marts_current.xls', method='auto',
destfile='C:/Users/<my name>/Desktop/test.xls', mode="wb")
I am trying to view (uncompressed) dicom files using XTK. However the browser does not show anything, although it seems that it is loading normally.
Does it matter that the slices from DICOM files are horizontal? In the Lesson 15 at https://github.com/xtk/X#readme the slices are vertical. The dicom files come from http://www.osirix-viewer.com/datasets/ (BRAINX dataset).
Thanks in advance!
Everything appears to work fine with the latest XTK Edge (https://github.com/xtk/X#readme). Could you point us to a non-working data set?
You might at some point see "white noise" instead of the actual image. It is most likely because the DICOM is JPEG compressed. XTK do not support that yet. To bypass it, you can uncompress the DICOM with dcmtk "dcmdjpeg" (http://support.dcmtk.org/docs/dcmdjpeg.html)
Thanks
Since Osirix Dataset is stored using JPEG 2000 Transfer Syntax, you are pretty much required to use gdcm:
$ gdcmconv --raw osirix_dataset.dcm output_raw.dcm
See the gdcmconv man page
DCMTK/JPEG 2000 module is not free, see here.
Can anybody give me a hint or initial idea how may I cut a file into chunks in Qt ? Is there any particular file like java it has built in function to split. Later on I want to calculate SHA-256 hash value of each chunks. Any idea guys ??
There is no built in function for that.
Open the original file.
Open a file for the first chunk.
Read bytes from the original file.
Write bytes to the chunk file.
Repeat.
See QFile documentation.