How to revise the route format when transfer files from WIN to LINUX? - linux

I used to use win2003 as my server,my web applicaion file has some files like \image\forum\1.jpg.
now, i plan to use CENTOS as my server. i notice that the route in linux is /image/forum/1.jpg.
question1: is the win route format is different with linux as i recognized?
question2: how to revise the route format before move to CENTOS? any advice is welcome.

I build my code on a windows 2k3 machine and then roll out live to centos servers. It's always worked either way without changing a thing :-) It's never caused me an issue.
You should have no need to change your code

Related

How to use firebird embedded on Linux with IBPP without running a service?

We're about to integrate a firebird database in our software via IBPP. Accordingly to the firebird documantation this should be possible.
We already managed to use the firebird database via IBPP while the service was running. But, we want avoid to run a service. On windows we already accomplished to do this - but on the linux side there are two main differences:
Installation
On windows it is not neccessary to make an installation. On Linux it seems to be, as the docs say:
Finally, you can't just ship libfbembed.so with your application and use it to connect to local databases. Under Linux, you always need a properly installed server, be it Classic or Super.
Is this true? I found the firebird documentation beeing outdated sometimes. If this is still valid, how to deal with this installtion? Can we just run it on the customer's pc. I looked at the shell script. It starts a service. For me it seems running this service is needed during installation process. Anyway, this would be no problem if the service is running only for the installtion and is never needed afterwards - but I'm not sure about this.
IBPP
On windows you just load the DLL via loadlibrary: We put the fbembed.dll, icuuc30.dll and icudt30.dll on any_dirctory, changed the passage in IBPP where the embedded dll is called to loadlibary("any_directory\fbembed.dll") and added any_directory to PATH variable. Everything works now. (Aside: By doing this it is possible to call the database via a DLL we created using IBPP. This DLL can be used by every EXE we give to the customer withour caring about the path the EXE is places in).
But on Linux I didn't found the code where this is done. On this HOWTO it seems a special directory structure is needed. Is this really neccessary? Is it possible to place the .so-files on any_directory and run the application from another_dirctory? Is it neccessary to add loadlibary to Linux section in IBPP? (BTW: My problem is I can't really test things because Linux integration is doing someone else for me).

Running .ktr created in windows on centos 6.5 server

Folks,
I trust all is well.
We have .ktr files that are created in widows 7 that we need to run on a centos 6.5 server using pan.
I am trying to run the following command the server:
[root#BTNYSLDVD01 data-integration]# /home/pentaho/data-integration/pan.sh /file=/home/pentaho/data-integration/file.ktr
However I am getting the following error:
2015/10/07 13:03:28 - File Output.0 - Access denied for user 'root'#'localhost' (using password: YES)
The file.ktr file was created and runs properly without errors on a widows 7 computer. The only modification I made was that I altered the <server></server> tag from <server>ip address</server> to <server>localhost</server>
I know that the password is correct because I am able to connect to the database from console.
We cannot create the .ktr files on the centos server since we do not have the desktop installed.
My question is "Is there snything special we need to do when running a .ktr file that was created in windows 7 on a centos 6.5 server"?
Thanks in advance for your help.
Andy
First run this
cd data-integration
chmod +x *.sh
It will make the shell scripts executable.
Without more details, it's hard to know what is wrong.
I guess that you may have a problem of access via ssh : maybe you should have a key (e.g. generated via ssh-keygen) for the user root?
It gets pretty interesting. I find out on page
http://dev.mysql.com/doc/refman/5.6/en/can-not-connect-to-server.html
"A Unix socket file is used if you do not specify a host name or if you specify the special host name localhost."
Unix socket pretty special feature not available on Windows, but Kettle is written on Java which suppose to work on different OS, and can't use Unix socket since it's plafrorm specific. It has to use tcp/ip connection.
Against it, mysql command is platform specific and able to utilize power of Unix socket, since it native tool.
Just try to put 127.0.0.1 instead of localhost
We were able to solve the issue. The issue was that mysql did not allow access from 127.0.0.1. We deployed pentaho on another server and were able to get the file to work. Thanks Simar for all your help.

is there any way i can use Application Loader on windows?

I have just created an iPhone app and need to upload the .ipa file, but I downloaded application loader and I am not able to open it via windows 7. is there any way around this?
I know this is an old question, but it came up on my search for a solution to the same problem. I wanted to share that I found a service that offers remote access to Mac OS called macincloud.com
I gave it a try, and it's surprisingly easy. Documentation isn't great, but it's not that difficult once you have access to the remote mac. Depending on how much time you're going to need to spend, there are a few pricing options, the cheapest of which is $12/week, but you can cancel any time (we'll see).
Of course it's very late for answering this, but maybe someone need this service. There is a desktop application that allows you to send your generated .ipa as well as Application Loader.
See here: http://appuploader.net/index.php
You can have Mac OS on your PC Virtual Machine, then easily install Application Loader there
When in search "Application Uploader" in Google, the following result http://www.appstoreuploader.com/ comes at no. 3. Apparently they charge $5 to upload your app.

Installing JavaComm API on Ubuntu

I know this question has been asked several times around the internet, but I have spent about a week trying to solve this problem with little luck.
I am trying to install JavaCommAPI (an archived Java package to allow communication with rs232) on a remote linux Ubuntu 11.0, 32-bit server in order to deploy a web project which I have developed on a local apache server on my windows PC.
The thing that puzzles me is, I am able to get the .war web project to deploy on a local apache server on a separate 32-bit LinuxMint16 PC by correctly placing the javax.comm.properties, comm.jar, and libSerialParallel.so files in their respective places.
I use System.getProperty("java.library.path"); in order to find the correct library path in order to install correct files.
On my LinuxMint16:
javax.comm.properties -- /usr/lib/jvm/java-7-openjdk-i386/jre/lib
comm.jar -- /usr/lib/jvm/java-7-openjdk-i386/jre/lib/ext
libSerialParallel.so -- /usr/lib/jvm/java-7-openjdk-i386/jre/lib/i386
....works!
On my remote Ubuntu server I did the exact same for its reported library path
(for example: /usr/local/jdk/jdk1.7.0_45/jre/lib/javax.comm.properties ;
/usr/local/jdk/jdk1.7.0_45/jre/lib/ext/comm.jar ;
/usr/local/jdk/jdk1.7.0_45/jre/lib/i386/libSerialParallel.so)
...fails =(
Things of note: I added the needed apache jars and comm.jar to my libraries in Eclipse using the BuildPath wizard (right click on project --> Build Path-->add external jars) which points to local files on my PC which I obviously cannot use for a remote server which I am only accessing through command line. May this is affecting it somehow?
I tried to get error output (System.err) from the Java Console printed to a separate file for my remote server as that feedback was very helpful in getting all the files sorted on my LinuxMint PC.
PrintStream ps = new PrintStream(pathName);
System.setOut(ps);
System.setErr(ps);
Which again, is oddly working beautifully to print the stream to a local .txt file on my LinuxMintPC but not to the one I designate on my remote ubuntu server.
I am really at a wits end here!! Am I mixing and matching appropriate versions of Systems prohibiting things to run smoothly? I am not sure how to proceed from here, if anyone has any insights I would die of happiness. Thanks
I needed to install OPEN JDK7 on my ubuntu, put files in appropriate library paths (as described above) and now it works.

WebMatrix error when using FTP?

When I use WebMatrix (the latest version, on Windows 8 RP) to try to connect to an FTP site, it shows an error where files should be shown. I actually have no idea what could be causing this, and I can't find any log file that could help. Screenshot: http://imgur.com/aV7iR
I'm also using IIS 8 to host a local PHP/MySQL site, if that matters
Thanks,
Matthew
I think this might actually be a different issue. There is a bug in WebMatrix RC that causes the remote view to behave badly when connecting to directories with large numbers of files.
We've fixed this now, and it should not repro in our next release. Sorry for any inconveniences this has caused.
Ah, it turned out to be because I had a file called "CFLogo.png" and another file called "cflogo.png" on my server and WebMatrix wasn't able to deal with both of them having essentially the same name :\

Resources