How to view a snappy file? - amazon-dynamodb

My OS is Windows 10.
I work with AWS dynamodb->Athena->S3.
My colleague has downloaded one table to *.snappy file and sent me.
How can I view this file? When I open it in Windows Notepad++ it seems compressed

Snappy is a compression format. There is a quite high chance that the compressed file is a .parquet so you can try ParquetViewer which supports snappy decompression out of the box.

Related

Qt - Some downloaded files have 0 byte

I'm currently struggling with a Qt app. I'm trying to download some files from Google Drive using QNetworkManager, QNetworkRequest and QNetworkReply.
First of all, my app works fine on a few computers (4 or 5 people tested it and didn't encounter any error). Each file which must be downloaded is effectively downloaded. (About 280 files are downloaded each time this way, and there is no problem.)
The issue is a member of my work team has only 0-byte files. Every single file which is downloaded over SSL doesn't have any content. The only one download on classic HTTP is correctly donwloaded.
Have you ever seen this bug?
All my "download" code comes from this single tutorial.
Edit : After a few tests, we found that the error was Error creating SSL context ().
Thus, we tried to solve it by installing both needed libraries (ssleay32.dll and libeay32.dll) on the computer but it didn't work. Do you know if it needs some other libraries?
It was actually about missing libraries. I had to add to my folder :
libeay32.dll
libssl32.dll
ssleay32.dll
The point was, even on 64-bit systems, these libraries had to be for 32-bit systems because I compiled my applications for 32-bit systems...
Moreover, msvcr120.dll was needed for some computers.

Qt5 VideoPlayer: Does not play .mp4 file

My problem is little bit strange for me. I wrote a mediaPlayer program.
And I move the executable file to another directory in the same machine. Put the dlls beside the exe. It works fine. It can plays .mp4,.avi etc. But when i move the exe and dlls another machine it doesn't play mp4 files.
I tried compile both MinGW and VS2012 and result is same. Didn't find why.
Is there a advice for me ?
Thanks.
Install a default codec pack onto the end user's machine or convert the mp4 to a codec sponsored by windows.
Codec Pack Recommendation
It is hard to go wrong with K-lite Basic Codec Pack. Just be careful when downloading because the main download site is riddled with ads and false download buttons.
My preferred way to install something like this on my development machine is to use chocolatey. First install chocolatey then in your admin cmd, run:
choco install k-litecodecpackbasic
Video Conversion Tool Recommendation
Handbrake. Occasionally ffmpeg or libav might be better suited, but for most cases go with Handbrake.
If You Can't Install New Codecs...
On the end user's machine (missing admin privileges) or something else, then you probably need to use vlc's library for video playback if you need to support more than the minimum supported out of the box by Windows.
Hope that helps.

How do I add support for a proprietary image format in Windows Photo Viewer / Picasa Viewer

I am working on developing a lossless compression algorithm using MATLAB.
I would like to see some of my compressed images on windows photo viewer. Could anyone direct me on how to go about doing this? Where may I find specifications to create a codec that would work with windows photo viewer?
I am guessing that I could create a codec as a .ddl file and place it in some windows directory and Photo Viewer could decode my file format. I have seen some softwares from Nikon imaging that, once installed, allowed photo viewer to display the .NEF (Nikon's RAW) files.
I am also willing to consider developing the codec for picasa.
I think I discovered what I was looking for - It is called Windows Imaging Component.
The MSDN docs appear to be here and an example of an implemented coded is webP.

Displaying a jpeg from a URL in labview

I need to make a labview VI that will display a jpeg image from a URL. (the url is generated based on some data)
I've found a way to display an image from the hard drive (Read JPEG File), so what I probably need is just a way to download it to a temporary file.
All I've found are some low level TCP client VI's. Is there an easier way? If there isn't I can just open a browser window, but I'd rather not.
Have a look at this LAVA post, titled Downloading an image from a Web server using Datasocket.
The only disadvantage is that it is not cross-platform, it will only work on Windows, on Linux I have seen this code killing LabVIEW.
The OpenG Internet Connectivity toolkit has code that is cross-platform.
Ton

Ctrl-M chars when transfer files SFTP

I am sending files from a windows system to a Unix SFTP server using JSCAPE ftp client.
However, I am experiencing the following issue:
When uploading a text file from windows to UNiX, each line of text files transferred contains Control-M characters. I did some search and found out that If I use the "ASCII" transfer mode it should solve the issue. But the Ctrl-M is still appearing on the files.
Can anyone throw some light in this issue?
thanks in advance
FTP supports switching between Binary and ASCII transfer mode and converting data on the fly but SFTP does not support that feature and it always transfers files unchanged (at least for the most popular version 3 of the protocol).
The utility dos2unix can be used to convert files from DOS to Unix.
That's the newline character from windows files showing up on UNIX system.
Convert the line endings prior to uploading or find a different FTP server package that can do it for you.
Some text editors have this functionality built in. For instance, Notepad++
Do you have cygwin? You can use the dos2unix utility.

Resources