iconv doesn't work properly on Windows 10 Enterprise - character-encoding

I want to convert legacy data from Windows 1253 to UTF-8 (without signature) on my Windows 10 Enterprise machine. I use iconv-1.9.2.win32 in the Windows Powershell:
iconv -f WINDOWS-1253 -t UTF-8 input.txt > output.txt
The output contains rather weird graphical symbols and not Greek.
If I redo the same using libiconv-1.9.2-1-bin I have the same problem. There is no problem on my Windows 7 machine.
Do you have an explanation? Might you recommend another solution or a tweak?

Related

RStudio Server C-Stack memory allocation setting in rsession.conf

I'm trying to increase C-stack size in rstudio server 0.99 on CentOS6 editing /etc/rstudio/rserver.conf file as follow:
rsession-stack-limit-mb=20
But "rstudio-server verify-installation" returns this message:
The option 'rsession-stack-limit-mb' is deprecated and will be discarded.
If I put this setting within /etc/rstudio/rsession.conf I obtain this message:
unrecognised option 'rsession-stack-limit-mb'
Someone can help me to find right configuration?
Thanks in advance
Diego
I guess you use the free version of RStudio Server. According to https://github.com/rstudio/rstudio/blob/master/src/cpp/server/ServerOptions.cpp, it seems like you have to need a commercial version if you'd like to manage memory limits in RStudio Server.
Or, you can use "ulimit" command on CentOS, e.g., "ulimit -s 20000". Then, run R from the Linux command line or in batch mode.

Ejabberd installation strange issue

OS: Debian 8.1 X64
trying to install eJabberd Community server based on this tutorial
At the end of installation, it pops error message
Error: Error running Post Install Script.
The installation may have not completed correctly
What am I doing wrong?
It looks like /bin/sh is Dash on your system (apparently the default since Debian Squeeze). However, the postinstall.sh script inside the package uses brace expansion, which while widely supported in various shells is not required by the POSIX standard, and thus Dash is not in error by not supporting it. The postinstall.sh script should either specify /bin/bash instead of /bin/sh in its first line, or abstain from using Bash-specific features.
You should be able to get a functioning ejabberd install by explicitly running the postinstall script with Bash:
sudo bash /opt/ejabberd-15.07/bin/postinstall.sh

ImageMagick, "which" is not recognized as an internal or external command

I just installed ImageMagick on my windows machine so I can use it with the paperclip gem with RUby on Rails. When I try to run "which convert" into the command prompt, it returns a 'which' is not recognized as an internal or external command,
operable program or batch file.
I am relatively new to command prompt and still trying to learn as much as I can. What is wrong with my command and how do I fix it?
The command is right. The OS is wrong.
which is a unix command not a windows one.
See the equivalent Windows command
Just use the following command on Windows:
where package_name

How to run a mindtct package (NBIS software)for a entire database(a set of 100 images) at a time in Redhat Linux

I have installed NBIS software in Redhat Linux in VMware and running as a host OS in my windows 7 system.
Till now I executed giving only one image, but now I need to run the entire DB with 100 images at a time and I should get the extracted minutiae.
I use the below cmd:
/NBIS/src/bin/mindtct /NBIS/Test_4.1.0/mindtct/data/5_2.jpg
/NBIS/output/5_2.xyt
Can anyone resolve my issue? What cmd should I use?
You can write a script to loop over all the images in your collection, or better yet, write a C program to wrap the mindtct functions, doing whatever you want to do within your new app. Take a look at the source for the binary mindtct in NBIS, especially the get_minutiae() function.
In the folder with your images you can use a bash script. This is the relevant part from mine. A simple for loop that will convert all images with the extension jp2 to xyt images.
PHOTOTYPE="*.jp2"
SAVEPATH="path/to/save/folder/"
for PIC in $PHOTOTYPE
do
echo "Processing mindtct -m1 $PIC $SAVEPATH/$PIC"
mindtct -m1 "$PIC" "$SAVEPATH/$PIC"
done
I tried it on Raspbian to Raspberry Pi
./mindtct path/file.jpg path/output
and it produced 8 files:
.brw, .dm, .hcm, .lcm, .lfm, .min, .qm, .xyt
In my understanding you should use a mindtct function to compare two finger images.

How to use -I backend with Mdb-tools 0.7~rc1-4?

I want to convert ms-access database to sql via mdbtools.
on ubuntu 11.10 32bit with mdbtools 0.5.99.0.6pre1.0.20051109-7.1 when i am using mdbtools -I backend is working fine. i.e. i got file with Insert statement.
but on ubuntu 12.04lts 64bit, mdbtools, 0.7~rc1-4 i am not able to convert mdb file into sql file.
my syntax is :
mdb-tools -I >
please let me know any correction is needed.
Thanks in advance.
mdb-tools -I access shuld work
Supported backends are: access, sybase, oracle, postgres, mysql

Resources